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

📋 Metadata

🏷️ Tags

popup-dialog hotkeys intermediate solved

  • Property Editor
  • Pie Menu Editor
  • Python Scripting

💬 Content

panosz:

In a regular menu I use this command
bpy.ops.pme.pm_toggle(action=‘TOGGLE’, name=‘Physics_Panel Physics’)
I want to use a checkbox in order to have a clear view of what is active and what is not. Is this possible somehow?

Use this code in Property tab:

prefs().pie_menus["Physics_Panel Physics"].enabled

Where prefs() is the addon’s preferences, pie_menus is a collection of menus, popups, etc (not just pie menus).


🔗 View on Blender Artists