hou.NodeConnection class

Represents a connection (wire) between two Nodes.

Each node has zero or more input connectors and zero or more output connectors. These connectors are numbered starting from zero, and they act as receptacles for connections. A connection goes from a particular connector in an output node to a particular connector in an input node.

Note that some nodes, like the merge SOP, appear to have a single input connector that can have multiple connections going into it. Internally, however, there are many input connectors that are simply displayed as one in the network editor, and each input connector has at most one input. For these special connectors, it is not possible to have gaps in the inputs (for example, it is not possible for the first and third connector of a merge SOP to be connected and the second to be disconnected). In the general case, however, whether or not a connector is connected is independent of the other connectors.

Because input connectors may be unconnected, it is not possible to use hou.Node.inputs to determine which input a node is connected to. Instead, use hou.Node.inputConnections. See also hou.Node.inputConnectors.

An output connector may have multiple connections coming out of it. Most nodes have only one output connector. However, some nodes, like the split DOP, do have multiple output connectors. See also hou.Node.outputs, hou.Node.outputConnections, and hou.Node.outputConnectors.

Methods

outputNode(self)hou.Node

A connection goes from an output node into an input node. Return the output node.

outputIndex(self)int

A connection goes from an output node into an input node. Return the index of the connector on the output node.

See the class documentation for more information.

inputNode(self)hou.Node

A connection goes from an output node into an input node. Return the input node.

inputIndex(self)int

A connection goes from an output node into an input node. Return the index of the connector on the input node.

See the class documentation for more information.