📋 Metadata

💬 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