SetPayLoadLoadSelectedPrimsCommand

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

Bases: Command

Methods

__init__(selected_paths, value[, ...])

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

do()

undo()

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

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

Parameters
  • selected_paths – Old selected prim paths.

  • value – True = load, False = unload

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