item(path)
→ hou.NetworkMovableItem or None
If the path starts with a /
, Houdini will look for an item with that exact
path. Otherwise, the Houdini searches relative to the current path.
See hou.pwd() for more information about Houdini’s current path. For each
occurrence of ..
in the path, Houdini will move up one item from the current
location.
This method is a more general form of the hou.node() method, which will only return hou.OpNode objects. But some network item types (hou.SubnetIndirectInput and hou.NetworkDot) do not have names, and so will never be returned by this method.
Raises hou.NotAvailable if you call it from MPlay.
>>> hou.item("/obj") <hou.OpNode at /obj> >>> hou.item("/obj").createNetworkBox() <hou.NetworkBox at /obj/__netbox1> >>> hou.item("/obj/__netbox1") <hou.NetworkBox at /obj/__netbox1> >>> hou.cd("/obj") >>> hou.item("__netbox1") <hou.NetworkBox at /obj/__netbox1> >>> print hou.item("__netbox2") None
See also |