📋 Metadata

💬 Content

roaoao:

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)

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:

image

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


🔗 View on Blender Artists