Post #3695: there is an answer from roaoao that you can adapt to do this.
📋 Metadata
- Author: Motiomancer
- Date: 2020-11-24 03:10:23
- Type:
answer - Quality Score: 8/10
- Reply to: post_03694
🏷️ Tags
popup-dialog customization intermediate solved
⚙️ Related PME Features
- 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

-
add the menu you need anywhere, you want the path that is in quotes after “panel=”
- 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
image545×513 47.4 KB