Post #2730: : post_02732
🏷️ Tags
popup-dialog custom-properties intermediate unsolved
⚙️ Related PME Features
- Property Editor
- Macro Editor
- Custom Python Scripting
- Enum Properties
💬 Content
roaoao:
Yes, you can add a new Property. Or use
pme.context.globalsin your code (Customtab):var = pme.context.globals.setdefault(“var”, True); sub = L.row(align=True); sub.enabled = var; operator(sub, “pme.exec”, cmd=“pme.context.globals.update(var=not var); open_menu(‘Macro Operator Name’)”, text=slot, icon=icon, icon_value=icon_value)
Is there any way to do something similar, but by deactivating using a Enum Property? I’m calling this property, and using the “open_menu(‘Property’) isn’t working:

I need to deactivate it after I press another button (not the buttons in the property itself).