Houdini 20.0 hapi

hapi.connectNodeInput function

Connect two nodes together.

Usage

connectNodeInput(session: hapi.Session, node_id: int, input_index: int, node_id_to_connect: int, output_index: int) → bool

Connect two nodes together.

session

The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.

node_id

The node whom’s input to connect to.

input_index

The input index. Should be between 0 and the to_node’s hapi.NodeInfo.inputCount - 1.

node_id_to_connect

The node to connect to node_id’s input.

output_index

The output index. Should be between 0 and the to_node’s hapi.NodeInfo.outputCount - 1.

hapi