Post #2687: : post_02690, post_02730
🏷️ Tags
macro custom-scripting intermediate solved
⚙️ Related PME Features
- Property Editor
- Macro Editor
- Custom Python Scripting
- Context Globals
💬 Content
RaphaelBarros:
What about by other question? Should I use the Property option from PME?
Yes, you can add a new Property. Or use pme.context.globals in your code (Custom tab):
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)