TogglePayLoadLoadSelectedPrimsCommand

class omni.usd.commands.TogglePayLoadLoadSelectedPrimsCommand(selected_paths: List[str], stage_or_context: Optional[Union[str, Stage, UsdContext]] = None)

Bases: Command

Methods

__init__(selected_paths[, stage_or_context])

Toggles the load/unload payload of the selected primitives undoable Command.

do()

undo()

__init__(selected_paths: List[str], stage_or_context: Optional[Union[str, Stage, UsdContext]] = None)

Toggles the load/unload payload of the selected primitives undoable Command.

Parameters
  • selected_paths – Old selected prim paths.

  • 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.