TransformPrimCommand

class omni.usd.commands.TransformPrimCommand(path: str, new_transform_matrix: Matrix4d, old_transform_matrix: Optional[Matrix4d] = None, time_code: TimeCode = Usd.TimeCode.Default(), had_transform_at_key: bool = False, usd_context_name: str = '')

Bases: Command

Transform primitive undoable Command.

Parameters
  • path (str) – Prim path.

  • new_transform_matrix – New transform matrix.

  • old_transform_matrix – Optional old transform matrix to undo to. If `None` use current transform.

Methods

__init__(path, new_transform_matrix[, ...])

do()

undo()

__init__(path: str, new_transform_matrix: Matrix4d, old_transform_matrix: Optional[Matrix4d] = None, time_code: TimeCode = Usd.TimeCode.Default(), had_transform_at_key: bool = False, usd_context_name: str = '')