Home Reference Houdini Object Model hou 

hou.pwd function

Return the current node or the node containing the evaluating parm. Houdini has one current node, analogous to a current directory in a file system. You can change the current node with cd().

pwd() → Node

Note that if this function is called from an expression inside a node’s parameter, it will return the node containing the expression, not Houdini’s current node. This behavior permits relative parameter and node references from parameter expressions, since functions like hou.evalParm , hou.parm , and hou.node are relative to the result of hou.pwd().

This function will raise hou.NotAvailable if you call it from mplay.

See also: hou.cd

Replaces: oppwf, oppwf, oppwd, opfullpath