ToggleVisibilitySelectedPrimsCommand

class omni.usd.commands.ToggleVisibilitySelectedPrimsCommand(selected_paths: List[str], stage: Optional[Stage] = None)

Bases: Command

Toggles the visiblity of the selected primitives.

This command will invert the visibilities for the specified list of primitives. Therefore, those visible primitives will be invisible after this command, and vice versa for invisible primitives.

Methods

__init__(selected_paths[, stage])

Constructor.

do()

undo()

__init__(selected_paths: List[str], stage: Optional[Stage] = None)

Constructor.

Parameters
  • selected_paths (List[str]) – A list of prim paths to toggle visibility.

  • stage (Usd.Stage, optional) – The stage to operate. Default is None, which means the stage in the default UsdContext is used.