UsdPropertyWatch#

class omni.kit.widget.stage.UsdPropertyWatch(
stage: ~pxr.Usd.Stage,
property_name: str,
model_type: ~typing.Type[~omni.kit.widget.stage.usd_property_watch.UsdPropertyWatchModel] = <class 'omni.kit.widget.stage.usd_property_watch.UsdPropertyWatchModel'>,
)#

Bases: UsdStageHelper

DEPRECATED: The purpose of this class is to keep a large number of models. `Usd.Notice.ObjectsChanged` is pretty slow, and to remain fast, we need to register as few `Tf.Notice` as possible. Thus, we can’t put the `Tf.Notice` logic to the model. Instead, this class creates and coordinates the models.

Methods

__init__(stage, property_name[, model_type])

## Arguments:

destroy()

Called before destroying

get_model(path)

update_dirty()

Create/remove dirty items that was collected from TfNotice.

__init__(
stage: ~pxr.Usd.Stage,
property_name: str,
model_type: ~typing.Type[~omni.kit.widget.stage.usd_property_watch.UsdPropertyWatchModel] = <class 'omni.kit.widget.stage.usd_property_watch.UsdPropertyWatchModel'>,
)#
## Arguments:

`stage`: USD Stage `property_name`: The name of the property to watch `model_type`: The name of the property to watch

destroy()#

Called before destroying

update_dirty()#

Create/remove dirty items that was collected from TfNotice. Can be called any time to pump changes.