SetPayLoadLoadSelectedPrimsCommand#
- class omni.usd.commands.SetPayLoadLoadSelectedPrimsCommand(
- selected_paths: List[str],
- value: bool,
- stage_or_context: str | Stage | UsdContext | None = None,
Bases:
Command
Set the loaded/unloaded payloads of the selected primitives.
Methods
__init__
(selected_paths, value[, ...])Constructor.
do
()undo
()- __init__(
- selected_paths: List[str],
- value: bool,
- stage_or_context: str | Stage | UsdContext | None = None,
Constructor.
- Parameters:
selected_paths (List[str]) – Old selected prim paths.
value (bool) – True for load, and False for unload.
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.