omni.kit.context_menu

Submodules Summary:

omni.kit.context_menu.scripts

No submodule docstring provided

Classes Summary:

ContextMenuExtension

Context menu core functionality. See omni.kit.viewport_legacy.context_menu for detailed usage.

ViewportMenu

Viewport context menu implementation with own styling

Functions Summary:

add_menu

add custom menu to any context_menu

close_menu

[omni.kit.widget.context_menu bridge function] Close currently open context menu. Used by tests not to leave context menu in bad state.

get_hovered_prim

Get prim currently under mouse cursor or None.

get_instance

Get instance of context menu class

get_menu_dict

get custom menus

get_menu_event_stream

Gets menu event stream.

post_notification

Post a notification via omni.kit.notification_manager.

reorder_menu_dict

Reorder menus using “appear_after” value in menu