SelectionNotifier#

class omni.kit.property.layer.widgets.SelectionNotifier(property_window_context_id='')#

Bases: object

A class responsible for notifying about layer selection changes in a property window context.

This class subscribes to layer selection events and triggers notifications to update the property window when a layer’s selection state changes. It is capable of starting and stopping the notification process and is meant to be used with a specific property window context, which could be specified during initialization.

Parameters:

property_window_context_id (str) – An identifier for the property window context to which the notifier is bound. Defaults to an empty string.

Methods

__init__([property_window_context_id])

Constructor for SelectionNotifier.

get_layers_widget()

Retrieves the layers widget instance.

start()

Starts the notification process for layer selection changes.

stop()

Stops the notification process and cleans up.

__init__(property_window_context_id='')#

Constructor for SelectionNotifier.

get_layers_widget()#

Retrieves the layers widget instance.

Returns:

The current instance of the layers widget.

Return type:

LayerWidget

start()#

Starts the notification process for layer selection changes.

stop()#

Stops the notification process and cleans up.