UsdPropertyWatchModel#

class omni.kit.widget.stage.UsdPropertyWatchModel(stage: Stage, path: Path)#

Bases: AbstractValueModel, UsdStageHelper

DEPRECATED: A helper model of UsdPropertyWatch that behaves like a model that watches a USD property. It doesn’t work properly if UsdPropertyWatch does not create it.

Methods

__init__(stage, path)

## Arguments:

destroy()

Called before destroying

get_value_as_bool()

Reimplemented get bool

get_value_as_float()

Reimplemented get bool

get_value_as_int()

Reimplemented get bool

get_value_as_string()

Reimplemented get bool

on_usd_changed()

Called by the stage model when the visibility is changed

set_value(value)

Reimplemented set bool

Attributes

__init__(
stage: Stage,
path: Path,
)#
## Arguments:

`stage`: USD Stage `path`: The full path to the watched property

destroy()#

Called before destroying

get_value_as_bool() bool | None#

Reimplemented get bool

get_value_as_float() float | None#

Reimplemented get bool

get_value_as_int() int | None#

Reimplemented get bool

get_value_as_string() str | None#

Reimplemented get bool

on_usd_changed()#

Called by the stage model when the visibility is changed

set_value(value: Any)#

Reimplemented set bool