Post #2809: ![](https://blenderartists.org/user_avatar/blenderartists.org/pinhead/48/528486_

📋 Metadata

  • Author: roaoao
  • Date: 2019-10-05 03:50:58
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_02808

🏷️ Tags

popup-dialog configuration intermediate solved

  • Popup Dialog Editor
  • Custom Python Scripting
  • Topbar Menu Configuration

💬 Content

Pinhead:

It is possible to have different topbar menus in different tabs (Layout, Sculpting, Shading ect…)?

Yes, use 1 button in the topbar with this code (Custom tab):
Blender 2.8+:

draw_menu(C.workspace.name) or draw_menu("Default Topbar")

Blender 2.7:

draw_menu(C.screen.name) or draw_menu("Default Topbar")

And add new popup dialogs with tab names (Layout, Sculpting, Shading…) and Default Topbar popup dialog for other tabs.


❤️ 2 likes


🔗 View on Blender Artists