Post #1513: ![](https://blenderartists.org/user_avatar/blenderartists.org/bitinn/48/494209_2

📋 Metadata

  • Author: roaoao
  • Date: 2018-07-29 17:02:01
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01512

🏷️ Tags

pie-menu custom-menus intermediate solved

  • Pie Menu Editor
  • Custom tab scripting
  • Menu integration

💬 Content

bitinn:

if there is already a built-in menu, for example, INFO_MT_add, can I somehow load it as a hover menu?

I only managed to get bpy.ops.wm.call_menu(name='INFO_MT_add') work, which of course open another menu instead of making it a submenu.

Use menu() function in Custom tab, eg:

L.menu('INFO_MT_add', text=slot, icon=icon, icon_value=icon_value)

❤️ 1 likes


🔗 View on Blender Artists