USDMetadataModel#

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

Bases: USDObjectModel

A simple value model to watch the specified metadata.

Methods

__init__(stage, path, md_key)

Constructor.

set_value(value)

Set the value directly to USD.

Attributes

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

Constructor.

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

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

  • md_key (str) – Meta data key.

set_value(value: Any)#

Set the value directly to USD.

Parameters:

value (Any) – New value to set.