omni.kit.menu.utils Functions

Functions Summary:

add_action_to_menu

Add action to menu path. (deprecated)

add_hook

add a menu modification callback hook

add_layout

add a menu layout.

add_menu_items

add a list of menus items to menu.

build_submenu_dict

builds a dictionary of List[MenuItemDescription] with sub_menus from List[MenuItemDescription] with full paths. EG: “/Window/Viewport/Viewport 1”

get_action_path

converts menu path into internal path

get_debug_stats

gets debug stats as dictionary, info on what functions called and how many times.

get_instance

get MenuUtilsExtension class ptr

get_menu_layout

get menu layouts.

get_merged_menus

get combined menus as dictionary

rebuild_menus

force menus to rebuild, triggering hooks

refresh_menu_items

update menus enabled state

remove_hook

remove a menu modification callback hook

remove_layout

remove a menu layout.

remove_menu_items

remove a list of menus items to menu.

replace_menu_items

replace a existing list of menus items to menu.

set_default_menu_priority

set default menu priority

set_default_menu_proirity

set default menu priority