Post #1388: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

📋 Metadata

🏷️ Tags

macro hotkeys intermediate solved

  • Property Editor
  • Macro Editor
  • Panel Group Editor
  • Python Scripting

💬 Content

anphung:

So I still have no idea how to use the Property Editor.
Can I make a button that toggles these commands?
bpy.ops.pme.pm_enable_by_tag(enable=False, tag=“Toggle Hidden Panel Group”)
bpy.ops.pme.pm_enable_by_tag(enable=True, tag=“Toggle Hidden Panel Group”)

Here is an example (video). Use this code in On Update slot:

bpy.ops.pme.pm_enable_by_tag(enable=props(menu), tag="Toggle Hidden Panel Group")

🔗 View on Blender Artists