hou.NetworkBox
class
Represents a network box.
To create a network box, use the hou.Node.createNetworkBox method on the node inside which you want to create the box. To get an existing network box, use the hou.Node.findNetworkBox method on the node containing the network box. To get a list of all network boxes in a network, use the hou.Node.networkBoxes method on the containing node.
Methods
addNode(self, node)-
Adds a node to the network box.
asCode(self, brief=False, recurse=False, save_box_contents=False, save_channels_only=False, save_creation_commands=False, save_keys_in_frames=False, save_parm_values_only=False, save_spare_parms=False, function_name=None) -> string-
Prints the Python code necessary to recreate a network box.
See hou.Node.asCode for information on the keyword arguments.
color(self)→ hou.Color-
Returns the color of this network box.
destroy(self, destroy_contents=False)-
Remove and delete the network box, optionally deleting the nodes it contains.
fitAroundContents(self)-
Resizes the network box to fit its contents.
isMinimized(self)→bool-
Returns whether the network box is minimized.
isPicked(self)→bool-
Returns whether the network box is selected.
move(self, vector2)-
Moves the network box by the increments in the given hou.Vector2. Use
setPosition()to set the box’s absolute position. name(self)→str-
Return the name of the network box.
nodes(self)→tupleof hou.Node-
Returns the nodes inside the network box.
parent(self)→ Node-
Returns the node which contains the network box.
position(self)→ hou.Vector2-
Return the position of this network box.
removeAllNodes(self)-
Removes all nodes from the network box.
removeNode(self, node)-
Removes the given node from the network box.
resize(self, vector2)-
Resizes a network box by the increments in the given hou.Vector2. Use
setSize()to set the box’s absolute size. setColor(self, color)-
Set the color of this network box to the given hou.Color.
setMinimized(self, on)-
Minimizes or restores the network box.
setName(self, name)-
Sets the name of the network box.
setPicked(self, on)-
Selectsor deselects the network box.
setPosition(self, vector2)-
Sets the position of this network box to the given hou.Vector2. Use
move()to move the box relative to its current position. setSize(self, size)-
Sets the size of this network box to the given hou.Vector2. Use
resize()to set the box’s size relative to its current size. size(self)→ hou.Vector2-
Returns the size of this network box.
subnetIndirectInputs(self)→tupleof hou.SubnetIndirectInput