Post #1388: : post_01392
🏷️ Tags
macro hotkeys intermediate solved
⚙️ Related PME Features
- 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")