UnparentPrimsCommand

class omni.usd.commands.UnparentPrimsCommand(paths: List[str], on_move_fn: Optional[callable] = None, keep_world_transform: bool = True, stage_or_context: Optional[Union[str, Stage, UsdContext]] = None)

Bases: Command

Methods

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

Move prims into "/" primitives undoable Command.

do()

undo()

__init__(paths: List[str], on_move_fn: Optional[callable] = None, keep_world_transform: bool = True, stage_or_context: Optional[Union[str, Stage, UsdContext]] = None)

Move prims into “/” primitives undoable Command.

Parameters
  • paths – prim path to become parent of child_paths

  • keep_world_transform – If it needs to keep the world transform after parenting.

  • stage_or_context (Union[str, Usd.Stage, omni.usd.UsdContext]) – Stage or UsdContext applies the changes to. It can be instance of Usd.Stage or omni.usd.UsdContext, or context name. By default, it will apply the changes to the stage in default UsdContext.