Houdini 20.0 hapi

hapi.queryNodeInput function

Query which node is connected to another node’s input.

Usage

queryNodeInput(session: hapi.Session, node_to_query: int, input_index: int) → int

Query which node is connected to another node’s input.

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_to_query

The node to query.

input_index

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

Returns connected_node_id as a int.

hapi