SelectPrimsCommand
- class omni.usd.commands.SelectPrimsCommand(old_selected_paths: ~typing.List[str], new_selected_paths: ~typing.List[str], expand_in_stage: bool = True, source: ~omni.usd._usd.Selection.SourceType = <SourceType.USD: 1>)
Bases:
Command
Select primitives undoable Command.
- Parameters
old_selected_paths (List[str]) – Old selected prim paths.
new_selected_paths (List[str]) – Prim paths to be selected.
expand_in_stage (bool, DEPRECATED) – Whether to expand the path in Stage Window on selection.
compatibility. (This param is left for) –
source (omni.usd.Selection.SourceType) – USD/FABRIC/ALL, indicates which stage selection should be set to
REMINDER: Both params old_selected_paths and new_selected_paths should be const out of the command. And it’s caller’s responsibility to maintain that. Otherwise, undo will not return to its original state.
Methods
__init__
(old_selected_paths, new_selected_paths)do
()undo
()- __init__(old_selected_paths: ~typing.List[str], new_selected_paths: ~typing.List[str], expand_in_stage: bool = True, source: ~omni.usd._usd.Selection.SourceType = <SourceType.USD: 1>)