LayerMetaWiget
- class omni.kit.property.layer.layer_property_widgets.LayerMetaWiget(icon_path)
Bases:
SimplePropertyWidget
A widget for displaying and interacting with the metadata of a layer in a USD scene.
This widget provides a UI component within the application to view and modify metadata associated with a specific layer. It dynamically updates its content based on the layer selected by the user and listens for changes in the layer’s metadata to refresh its display.
- Parameters
icon_path (str) – The file path to the icon used by the widget.
Methods
__init__
(icon_path)Initializes the LayerMetaWiget with a specified icon path.
Builds the UI items for the widget based on the current payload.
on_new_payload
(payload)Handles a new payload for the widget.
reset
()Resets the widget to its initial state, clearing any metadata change listeners and models.
- __init__(icon_path)
Initializes the LayerMetaWiget with a specified icon path.
- build_items()
Builds the UI items for the widget based on the current payload.
- on_new_payload(payload)
Handles a new payload for the widget.
- Parameters
payload (Dict) – The new payload to be handled by the widget.
- Returns
True if the payload is not None, False otherwise.
- Return type
bool
- reset()
Resets the widget to its initial state, clearing any metadata change listeners and models.