Houdini 20.5 hapi

hapi.queryNodeOutputConnectedNodes function

Get the ids of nodes currently connected to the given node

Use the connected_count returned by hapi.queryNodeOutputConnectedCount.

Usage

queryNodeOutputConnectedNodes(session: hapi.Session, node_id: int, output_idx: int, into_subnets: bool, through_dots: bool, start: int, length: int) → list of int

Get the ids 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.

start

At least 0 and at most connected_count returned by hapi.queryNodeOutputConnectedCount.

length

Given connected_count returned by hapi.queryNodeOutputConnectedCount length should be at least 1 and at most connected_count - start.

Returns connected_node_ids_array as a list of int.

hapi