Use the count returned by this function to get the HAPI_NodeId of connected nodes using hapi.queryNodeOutputConnectedNodes.
Usage ¶
queryNodeOutputConnectedCount(session
: hapi.Session, node_id
: int
, output_idx
: int
, into_subnets
: bool
, through_dots
: bool
) → int
Get the number of nodes currently connected to the given node at the output index.
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 id.
output_idx
The output index. Should be between 0 and the to_node’s hapi.NodeInfo.outputCount - 1.
into_subnets
Whether to search by diving into subnets.
through_dots
Whether to search through dots.
Returns connected_count as a int
.