Houdini 22.0 hapi

hapi.getCameraTransform function

Retrieves the transform of the SOP camera primitive. Scale is always

Usage

getCameraTransform(session: hapi.Session, node_id: int, part_id: int) → hapi.Transform

Retrieves the transform of the SOP camera primitive. Scale is always locked to /hapi/1, 1, 1.html.

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.

part_id

The part id. The hapi.PartInfo.type must be hapi.partType.Camera.

Returns transform as a hapi.Transform.

hapi