Post #2687: ![](https://blenderartists.org/user_avatar/blenderartists.org/raphaelbarros/48/1

📋 Metadata

🏷️ Tags

macro custom-scripting intermediate solved

  • 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)

🔗 View on Blender Artists