get_rotation_from_order

omni.fabric.commands.scripts.utils.get_rotation_from_order(order: str, angles: list[float])

Composes a rotation based on a given order and corresponding angles.

Parameters
  • order (str) – A string specifying the order of axes (e.g., ‘XYZ’) for which to apply the rotations.

  • angles (list[float]) – A list of three float values specifying the rotation in degrees around the X, Y, and Z axes, respectively.

Returns

The final rotation composed of the specified order and angles.

Return type

usdrt.Gf.Rotation