Post #3487: oa

📋 Metadata

🏷️ Tags

pie-menu customization intermediate solved

  • Pie Menu Editor
  • Custom tab scripting
  • Command tab execution

💬 Content

oatestwder:

I was wondering if its possible to add the existing context sensitive ‘toolbar’ menu to the bottom of a pie menu?

Yes, looks like it’s possible. Custom tab:

from bl_ui.space_toolsystem_common import ToolSelectPanelHelper; cls = ToolSelectPanelHelper._tool_class_from_space_type(C.space_data.type); col = L.column(); col.scale_x = 1.2; cls.draw_cls(col.column(), C, detect_layout=False)

oatestwder:

I tried copying the existing ‘wm.toolbar’ but that didn’t do anything at all.

bpy.ops.wm.toolbar() in Command tab should work.


❤️ 4 likes


🔗 View on Blender Artists