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.

See omni.kit.selection for more details about selection.

Methods

__init__(old_selected_paths, new_selected_paths)

Constructor.

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>)#

Constructor.

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. This param is left for back compatibility.

  • source (omni.usd.Selection.SourceType, optional) – USD/FABRIC/ALL, indicates which stage selection should be set to Default is omni.usd.Selection.SourceType.USD.