USDBoolAttributeModel#

class omni.kit.viewport.menubar.core.USDBoolAttributeModel(
stage: Stage,
path: Path,
prop_name: str,
)#

Bases: USDAttributeModel

A simple value model to watch the boolean attribute.

Methods

__init__(stage, path, prop_name)

Constructor.

set_value(value)

Set the value directly to USD.

Attributes

__init__(
stage: Stage,
path: Path,
prop_name: str,
)#

Constructor.

Parameters:
  • stage (Usd.Stage) – USD stage.

  • path (Sdf.Path) – Path in stage.

  • prop_name (str) – Attribute name.

set_value(value: bool)#

Set the value directly to USD.

Parameters:

value (bool) – New value to set.