TogglePayLoadLoadSelectedPrimsCommand
- class omni.usd.commands.TogglePayLoadLoadSelectedPrimsCommand(selected_paths: List[str], stage_or_context: Optional[Union[str, Stage, UsdContext]] = None)
Bases:
Command
Toggles the loaded/unloaded payloads of the selected primitives.
Methods
__init__
(selected_paths[, stage_or_context])Constructor.
do
()undo
()- __init__(selected_paths: List[str], stage_or_context: Optional[Union[str, Stage, UsdContext]] = None)
Constructor.
- Parameters
selected_paths (List[str]) – Old selected prim paths.
stage_or_context (Union[str, Usd.Stage, omni.usd.UsdContext], optional) – 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.