Post #3695: there is an answer from roaoao that you can adapt to do this.

📋 Metadata

🏷️ Tags

popup-dialog customization intermediate solved

  • Popup Dialog Editor
  • Menu Editor
  • Python Scripting
  • Interactive Panels

💬 Content

there is an answer from roaoao that you can adapt to do this.

  • active interactive panels
    image

  • add the menu you need anywhere, you want the path that is in quotes after “panel=”

imageimage545×513 47.4 KB

  • in this case the context menu path would be: VIEW3D_MT_object_context_menu

now use that path in this Custom code:

pme.layout = L.box().column(align=True); bpy.types. <<<Name here>>> .draw(pme, C)

so it should look like this

pme.layout = L.box().column(align=True); bpy.types.VIEW3D_MT_object_context_menu.draw(pme, C)

I think you can do this with any menu that is able to be added with interactive panels


🔗 View on Blender Artists