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().

All Usage Replaces

See also: hou.cd

Usage

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.

Replaces

oppwf command , oppwf expression function , oppwd expression function , opfullpath expression function