Post #3487:
oa
📋 Metadata
- Author: roaoao
- Date: 2020-08-01 13:55:37
- Type:
answer - Quality Score: 8/10
- Reply to: post_03485
- Replies (1): post_03491
🏷️ Tags
pie-menu customization intermediate solved
⚙️ Related PME Features
- 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