📋 Metadata
- Author: roaoao
- Date: 2018-05-10 08:28:15
- Type:
answer - Reply to: post_01386
- Replies (1): post_01392
💬 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")