Houdini 20.5 hapi

hapi.composeChildNodeList function

Compose a list of child nodes based on given filters.

This function will only compose the list of child nodes. It will not return this list. After your call to this function, call hapi.getComposedChildNodeList to get the list of child node ids.

Note: When looking for all Display SOP nodes using this function, and using recursive mode, the recursion will stop as soon as a display SOP is found within each OBJ geometry network. It is almost never useful to get a list of ALL display SOP nodes recursively as they would all containt the same geometry. Even so, this special case only comes up if the display SOP itself is a subnet.

Usage

composeChildNodeList(session: hapi.Session, parent_node_id: int, node_type_filter: int, node_flags_filter: int, recursive: bool) → int

Compose a list of child nodes based on given filters.

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.

parent_node_id

The node id of the parent node.

node_type_filter

The node type by which to filter the children.

node_flags_filter

The node flags by which to filter the children.

recursive

Whether or not to compose the list recursively.

Returns count as a int.

hapi