TransformMultiPrimsFabricSRT#

class omni.kit.manipulator.prim.fabric.TransformMultiPrimsFabricSRT(
paths: list[Path],
new_translations: List[Vec3d] | None = None,
new_rotation_eulers: List[Vec3d] | None = None,
new_rotation_orders: List[Vec3i] | None = None,
new_scales: List[Vec3d] | None = None,
old_translations: List[Vec3d] | None = None,
old_rotation_eulers: List[Vec3d] | None = None,
old_rotation_orders: List[Vec3i] | None = None,
old_scales: List[Vec3d] | None = None,
stage=None,
time_code: TimeCode = Usd.TimeCode.Default(),
write_to_stage: bool = False,
)#

Bases: Command

Transform Fabric primitives in Fabric stage. :param paths: List of path strings for selected prims. :type paths: List[usdrt.Sdf._Sdf.Path] :param new_translations: List of new translation values for prims. :type new_translations: List[usdrt.Gf.Vec3d] :param new_rotation_eulers: List of new rotation euler angles for prims. :type new_rotation_eulers: List[usdrt.Gf.Vec3d] :param new_rotation_orders: List of new rotation orders for prims. :type new_rotation_orders: List[usdrt.Gf.Vec3i] :param new_scales: List of new scale values for prims. :type new_scales: List[usdrt.Gf.Vec3d] :param old_translations: Previous translations for undo functionality. :type old_translations: List[usdrt.Gf.Vec3d] :param old_rotation_eulers: Previous rotations in Euler form for undo. :type old_rotation_eulers: List[usdrt.Gf.Vec3d] :param old_rotation_orders: Previous rotation orders for undo functionality. :type old_rotation_orders: List[usdrt.Gf.Vec3i] :param old_scales: Previous scale values for undo functionality. :type old_scales: List[usdrt.Gf.Vec3d] :param stage: The stage to operate. :type stage: usdrt.Usd.Stage :param time_code: The timecode to change. Default is usdrt.Usd.TimeCode.Default(). :type time_code: usdrt.Usd.TimeCode :param write_to_stage: Whether to write the prim after it’s transformed. :type write_to_stage: bool

Methods

__init__(paths[, new_translations, ...])

Initializes the command for transforming multiple primitives in a Fabric stage.

do()

Performs the transformation on multiple primitives.

undo()

Reverts the transformation applied to the primitives.

__init__(
paths: list[Path],
new_translations: List[Vec3d] | None = None,
new_rotation_eulers: List[Vec3d] | None = None,
new_rotation_orders: List[Vec3i] | None = None,
new_scales: List[Vec3d] | None = None,
old_translations: List[Vec3d] | None = None,
old_rotation_eulers: List[Vec3d] | None = None,
old_rotation_orders: List[Vec3i] | None = None,
old_scales: List[Vec3d] | None = None,
stage=None,
time_code: TimeCode = Usd.TimeCode.Default(),
write_to_stage: bool = False,
)#

Initializes the command for transforming multiple primitives in a Fabric stage.

do()#

Performs the transformation on multiple primitives.

undo()#

Reverts the transformation applied to the primitives.