convert_matrix4_type#
- omni.fabric.commands.scripts.utils.convert_matrix4_type(
- matrix,
- to_matrix_type: Matrix4d | Matrix4d,
Converts a matrix to the specified matrix type.
- Parameters:
matrix – The matrix to convert.
to_matrix_type (Union[usdrt.Gf.Matrix4d, Gf.Matrix4d]) – The type of matrix to convert to, either usdrt.Gf.Matrix4d or Gf.Matrix4d.
- Returns:
The converted matrix as the specified matrix type.