Post #1847: : post_01848
🏷️ Tags
pie-menu hotkeys intermediate solved
⚙️ Related PME Features
- Pie Menu Editor
- Property Editor
- Custom Icons
- Python Scripting
💬 Content
panosz:
is it possible the button that enables a pie menu to show if it is enabled or not?
Yes, use this code in Property tab:
prefs().pie_menus["Pie Name"].enabled
Or this in Custom tab:
pie = "Pie Name"; L.prop(prefs().pie_menus[pie], "enabled", text=pie, toggle=True)
Blender 2.80 has a new way to highlight buttons by using depress parameter (Custom tab):
pie = "Pie Name"; L.operator("pme.pm_toggle", text=pie, depress=prefs().pie_menus[pie].enabled).name = pie