In Houdini, a node group contains a set of nodes from the same network. Each group is named, and you can edit a group’s contents from the network view pane by selecting Tools > Show Groups from its right-mouse menu.
A node bundle, on the other hand, may contain nodes from multiple networks, and corresponds to a hou.NodeBundle object. You can edit a node bundle from the bundle list pane.
Methods ¶
name()
→ str
Returns the name of this group.
parent()
→ hou.OpNode
Returns the network node containing this group.
nodes()
→ tuple of hou.OpNode
Return a tuple containing the nodes in this group.
addNode(node)
Add a hou.OpNode to this group.
If the node is already in the group, this method does nothing. If the node is not in the correct network for this group, raises hou.OperationFailed.
removeNode(node)
Remove a hou.OpNode from this group.
Raises hou.OperationFailed if the node is not in the group.
clear()
Remove all nodes from this group.
destroy()
Delete this group. Does not delete the nodes that were contained in it.
asCode(save_creation_commands=False, function_name=None)
→ str
Returns the Python code necessary to recreate this group.
save_creation_commands
Generate a creation script for the node group. If set to False (the default), the generated script assumes that the node group already exists. When set to True, the script will begin by creating the node group.
function_name
If a function_name is specified, the output will be wrapped in a Python function.