SelectionSetWindow

class omni.kit.menu.edit.scripts.selection_window.SelectionSetWindow(callback)

Bases: object

A window to input and create a new selection set name.

This class provides a UI window that allows users to enter a name for a new selection set and create it using a callback function. The window includes a label, a text field, and ‘Create’ and ‘Cancel’ buttons.

Parameters

callback (Callable[[str], None]) – Function to call with the new selection set name.

Methods

__init__(callback)

Initializes the SelectionSetWindow with a callback to be triggered upon creation.

show()

Shows the SelectionSetWindow and resets the input field.

shutdown()

Shuts down the SelectionSetWindow and cleans up resources.

__init__(callback)

Initializes the SelectionSetWindow with a callback to be triggered upon creation.

show()

Shows the SelectionSetWindow and resets the input field.

shutdown()

Shuts down the SelectionSetWindow and cleans up resources.