Houdini 20.5 hapi

hapi.composeObjectList function

Compose a list of child object nodes given a parent node id.

Use the object_count returned by this function to get the hapi.ObjectInfo structs for each child object using hapi.getComposedObjectList.

Note, if not using the categories arg, this is equivalent to:

hapi.composeChildNodeList session, parent_node_id, hapi.nodeType.Obj hapi.nodeFlags.ObjGeometry true, &object_count );

Usage

composeObjectList(session: hapi.Session, parent_node_id: int, categories: str) → int

Compose a list of child object nodes given a parent node id.

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 parent node id.

categories

(Optional) Lets you filter object nodes by their render categories. This is a standard OBJ parameter, usually under the Render > Shading tab. If an OBJ node does not have this parameter, one can always add it as a spare.

The value of this string argument should be None if not used or a space-separated list of category names. Multiple category names will be treated as an AND op.

Returns object_count as a int.

hapi