hou.parm function

Given a path string, return a Parm object. Return None if the path does not refer to a parameter.

All Usage Replaces

See also: hou.Parm, hou.evalParm, hou.parmTuple_

Usage

parm(path)hou.Parm or None

If the path starts with a /, Houdini will look for a parameter with that exact path. Otherwise, the Houdini searches relative to the current node path. For each occurrence of .. in the path, Houdini will move up one node from the current node location.

>>> node = hou.node("/obj").createNode("geo")
>>> node.path()
'/obj/geo1'
>>> hou.parmTuple("/obj/geo1/t")
<hou.ParmTuple t in /obj/geo1>
>>> hou.parmTuple("/obj/geo1/t")[0]
<hou.Parm tx in /obj/geo1>
>>> hou.parm("/obj/geo1/tx")
<hou.Parm tx in /obj/geo1>
>>> hou.setPwd(node)
>>> hou.parm("t")
<hou.Parm tx in /obj/geo1>

Raises hou.NotAvailable if you call it from MPlay.

Replaces

ch expression function , chs expression function , chexist expression function