Post #1847: ![](https://blenderartists.org/user_avatar/blenderartists.org/panosz/48/31678_2.

📋 Metadata

🏷️ Tags

pie-menu hotkeys intermediate solved

  • 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

🔗 View on Blender Artists