Houdini 20.5 hapi

hapi.getComposedObjectTransforms function

Fill an array of hapi.Transform structs.

This is best used with hapi.composeObjectList with.

Note that these transforms will be relative to the parent_node_id originally given to hapi.composeObjectList and expected to be the same with this call. If parent_node_id is not an OBJ node, the transforms will be given as they are on the object node itself.

Usage

getComposedObjectTransforms(session: hapi.Session, parent_node_id: int, rst_order: hapi.rstOrder, start: int, length: int) → list of hapi.Transform

Fill an array of hapi.Transform structs.

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. The object transforms will be relative to this node unless this node is not an OBJ.

rst_order

The order of application of translation, rotation and scale.

start

At least 0 and at most object_count returned by hapi.composeObjectList.

length

Given object_count returned by hapi.composeObjectList length should be at least 0 and at most object_count - start.

Returns transform_array as a list of hapi.Transform.

hapi