Houdini node name expression. With opfullpath() you can get the absolute path from that.
Houdini node name expression. e. For example this will give you the name if the node you are currently inside 'opname (". You don’t have to worry about renaming a node breaking expressions. As you want it in a string, you need to put the expression in back ticks. Jul 12, 2013 · I'm not in front of houdini right now and i'm curious to know if it is possible to write that expression in the place where we name the node so we can reference the name with something else like a channel or another node? May 5, 2019 · The help documentation for each node will give you some of its specific local variables. Jun 25, 2017 · I think you can use the opname expression for this. , the node on which the expression is being evaluated), and not Houdini’s current node. opname(". This is very similar The relevant commands you will probably need are opinput(), opoutput() and opfullpath() With opinput() and opoutput() you can derive the node name of the incoming and outgoing nodes. ") will return the name of the network containing the current node. Just starting out in Houdini? Take a look at the fundamental nodes, expressions, and variables that you need to get your head around. phm () will return the python module associated with the definition of the node containing the expression. You can then refer to the primitives in subsequent nodes using @name=foo. This is useful to find out the name of the network containing the node, e. You can also use relative parameter and node references in parameter expressions in functions such as hou. ch This node sets an attribute (called name by default) on the selected points/primitives to a certain value. The function hou. pwd () will return the node containing the expression (i. With opfullpath() you can get the absolute path from that. in Expressions in file names How to use variables and expressions in file path fields to generate numbered and unique filenames. . So say if in a SOP space of object geo1, you have 3 SOP nodes: sphere1 -> matchsize1 -> mountain1 and in matchsize SOP you have a string parameter. I tend to think they give Houdini the reputation of being a tough application to… Mar 6, 2015 · Now we want to use the node name in our filename. We can just type it in ourselves but if you change the name of the node, you have to remember to update the name in the path parameter as well. Similarly, hou. g. Returns the name of a node given its path. These vary from node to node but a reasonable generic list for geometry is outlined below. ")' Houdini automatically updates any existing references to the node in the scene. For example, you can select a single face, or small set of faces, on some polygonal geometry, and “name” it foo (that is, create a primitive attribute name with the value foo) on the faces. Expression functions Expression functions let you compute the value of parameters. Houdini lets you write expressions in two different languages: traditional HScript expressions, and Python. 💬 0 🔁 0 ️ 2 · QuickTip – Expressions In Filenames · As you know, the use of expressions is everywhere in Houdini. In addition, some specific nodes let you write VEX snippets to control the node behavior. alpizpqkwrvkgtmjjgwjxetgyqgbrieztvmvjbzmfunzeizq