Houdini 20.5 hapi

hapi.convertMatrixToQuat function

Converts a 4×4 matrix into its TRS form.

Usage

convertMatrixToQuat(session: hapi.Session, matrix: list of float, rst_order: hapi.rstOrder) → hapi.Transform

Converts a 4×4 matrix into its TRS form.

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.

matrix

A 4×4 matrix expressed in a 16 element float array.

rst_order

The desired transform order of the output.

Returns transform_out as a hapi.Transform.

hapi