Node Tools
The nodes module provides tools related to dealing with a Houdini nodes.
disconnect_all_inputs
The disconnect_all_inputs() function will disconnect all the node’s inputs.
disconnect_all_outputs
The disconnect_all_outputs() function will disconnect all the node’s outputs.
get_containing_node
The get_containing_node() function will return the nearest parent node which is of a different node
type category than the passed node.
# Skips the parent Subnet as it is a SOP node the contains SOPs.
>>> houdini_core_tools.nodes.get_containing_node(hou.node("/obj/geo1/subnet1/file1"))
<hou.ObjNode of type geo at /obj/geo1>
>>> houdini_core_tools.nodes.get_containing_node(hou.node("/obj/geo1/subnet1"))
<hou.ObjNode of type geo at /obj/geo1>
>>> houdini_core_tools.nodes.get_containing_node(hou.node("/obj/geo1"))
<hou.OpNode at /obj>
>>> houdini_core_tools.nodes.get_containing_node(hou.node("/obj"))
<hou.OpNode at />
>>> houdini_core_tools.nodes.get_containing_node(hou.node("/"))
None
get_node_descriptive_parameter
The get_node_descriptive_parameter() function will return the user name of the node’s creator.
get_node_dive_target
The get_node_dive_target() function will return the user name of the node’s creator.