GroupPrimsCommand

class omni.usd.commands.GroupPrimsCommand(prim_paths: List[Union[str, Path]], stage: Optional[Stage] = None, context_name: Optional[str] = None, destructive=True)

Bases: Command, UsdStageHelper

Group primitive undoable Command.

Parameters
  • prim_paths (List[str]) – Prim paths that will be grouped.

  • stage (Usd.Stage) – Stage to operate. Optional.

  • context_name (str) – The usd context to operate. Optional.

  • destructive (bool) – If it’s true, it will group all prims and remove original prims, which may edit other layers that are not edit target currently. If it’s false, all changes will made only to the current edit target without touching other layers. By default, it’s true for back compatibility.

Methods

__init__(prim_paths[, stage, context_name, ...])

do()

undo()

__init__(prim_paths: List[Union[str, Path]], stage: Optional[Stage] = None, context_name: Optional[str] = None, destructive=True)