TogglePrimVarCommand#
- class omni.kit.property.geometry.TogglePrimVarCommand(
- prim_path: List[str],
- prim_name: str,
- usd_context_name: str | None = '',
Bases:
CommandToggle primvar undoable Command.
- Parameters:
prim_path (list) – List of paths of prims.
prim_name (str) – Primvar name.
usd_context_name (str) – USD context name.
Methods
__init__(prim_path, prim_name[, ...])Initializes the TogglePrimVarCommand which toggles a boolean primvar for the specified prims.
do()Executes the TogglePrimVarCommand, toggling the boolean primvar value for each prim.
undo()Reverts the changes made by the TogglePrimVarCommand, restoring the original primvar values.
- __init__(
- prim_path: List[str],
- prim_name: str,
- usd_context_name: str | None = '',
Initializes the TogglePrimVarCommand which toggles a boolean primvar for the specified prims.
- do()#
Executes the TogglePrimVarCommand, toggling the boolean primvar value for each prim.
- undo()#
Reverts the changes made by the TogglePrimVarCommand, restoring the original primvar values.