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 | Adds a node to the network box. |
| asCode | Prints the Python code necessary to recreate a network box. |
| color | Returns the color of this network box. |
| destroy | Remove and delete the network box, optionally deleting the nodes it contains. |
| fitAroundContents | Resizes the network box to fit its contents. |
| isMinimized | Returns whether the network box is minimized. |
| isPicked | Returns whether the network box is selected. |
| move | Moves the network box by the increments in the given hou.Vector2. Use setPosition() to set the box’s absolute position. |
| name | Return the name of the network box. |
| nodes | Returns the nodes inside the network box. |
| parent | Returns the node which contains the network box. |
| position | Return the position of this network box. |
| removeAllNodes | Removes all nodes from the network box. |
| removeNode | Removes the given node from the network box. |
| resize | Resizes a network box by the increments in the given hou.Vector2. Use setSize() to set the box’s absolute size. |
| setColor | Set the color of this network box to the given hou.Color. |
| setMinimized | Minimizes or restores the network box. |
| setName | Sets the name of the network box. |
| setPicked | Selectsor deselects the network box. |
| setPosition | Sets the position of this network box to the given hou.Vector2. Use move() to move the box relative to its current position. |
| setSize | 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 | Returns the size of this network box. |
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) -> stringPrints the Python code necessary to recreate a network box.
See hou.Node.asCode for information on the keyword arguments.
color(self)→ hou.ColorReturns 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)→boolReturns whether the network box is minimized.
isPicked(self)→boolReturns 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)→strReturn the name of the network box.
nodes(self)→tupleof hou.NodeReturns the nodes inside the network box.
parent(self)→ NodeReturns the node which contains the network box.
position(self)→ hou.Vector2Return 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.Vector2Returns the size of this network box.
subnetIndirectInputs(self)→tupleof hou.SubnetIndirectInputThis feature is not yet implemented