TransformPrimsSRTCommand#

class omni.usd.commands.TransformPrimsSRTCommand(
prims_to_transform: List[Tuple[str, Vec3d, Vec3d, Vec3i, Vec3d, Vec3d, Vec3d, Vec3i, Vec3d, TimeCode, bool]],
)#

Bases: Command

Set local transforms of multiple primitives with scale, rotation and transform values.

This command is a batch version of TransformPrimSRTCommand

Methods

__init__(prims_to_transform)

Constructor.

do()

undo()

__init__(
prims_to_transform: List[Tuple[str, Vec3d, Vec3d, Vec3i, Vec3d, Vec3d, Vec3d, Vec3i, Vec3d, TimeCode, bool]],
)#

Constructor.

Parameters:

prims_to_transform – List of primitive to transform in a tuple of (path, new_translation, new_rotation_euler, new_rotation_order, new_scale, old_translation, old_rotation_euler, old_rotation_order, old_scale, time_code, had_transform_at_key).