get_menu_dict

omni.kit.context_menu.scripts.get_menu_dict(index: str = 'MENU', extension_id: str = '') List[dict]

get custom menus

see add_menu for dictionary info

Parameters
  • index (str) – name of the menu

  • extension_id (str) – name of the target

Returns

a list of dictionaries containing custom menu settings. See ContextMenuExtension docs for information on values