Houdini 11 Houdini Object Model hou

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

addNodeAdds a node to the network box.
asCodePrints the Python code necessary to recreate a network box.
colorReturns the color of this network box.
destroyRemove and delete the network box, optionally deleting the nodes it contains.
fitAroundContentsResizes the network box to fit its contents.
isMinimizedReturns whether the network box is minimized.
isPickedReturns whether the network box is selected.
moveMoves the network box by the increments in the given hou.Vector2. Use setPosition() to set the box’s absolute position.
nameReturn the name of the network box.
nodesReturns the nodes inside the network box.
parentReturns the node which contains the network box.
positionReturn the position of this network box.
removeAllNodesRemoves all nodes from the network box.
removeNodeRemoves the given node from the network box.
resizeResizes a network box by the increments in the given hou.Vector2. Use setSize() to set the box’s absolute size.
setColorSet the color of this network box to the given hou.Color.
setMinimizedMinimizes or restores the network box.
setNameSets the name of the network box.
setPickedSelectsor deselects the network box.
setPositionSets the position of this network box to the given hou.Vector2. Use move() to move the box relative to its current position.
setSizeSets the size of this network box to the given hou.Vector2. Use resize() to set the box’s size relative to its current size.
sizeReturns 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) -> 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) tuple of 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) tuple of hou.SubnetIndirectInput

This feature is not yet implemented

Replaces