Houdini 20.5 hapi

hapi.getObjectTransform function

Get the tranform of an OBJ node.

Usage

getObjectTransform(session: hapi.Session, node_id: int, relative_to_node_id: int, rst_order: hapi.rstOrder) → hapi.Transform

Get the tranform of an OBJ node.

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

relative_to_node_id

The object node id for the object to which the returned transform will be relative to. Pass -1 or the node_id to just get the object’s local transform.

rst_order

The order of application of translation, rotation and scale.

Returns transform as a hapi.Transform.

hapi