Post #1676: Hope this helps.

📋 Metadata

🏷️ Tags

macro python-scripting intermediate solved

  • Macro Editor
  • Python Scripting
  • Custom Properties

💬 Content

Hope this helps.
You are using this command:

open_menu("Tab Bar Commands", props(menu))

props() function returns the value of Tab Bar custom property. Which is enum property.
When multiselect is disabled, enum property stores a string value. Eg: ‘Assets’
When multiselect is enabled, it stores a set of string values. Eg: {‘Assets’, ‘Add’}

Try this instead:

[open_menu("Tab Bar Commands", value) for value in props(menu)]

🔗 View on Blender Artists