Post #1676: Hope this helps.
📋 Metadata
- Author: roaoao
- Date: 2018-11-25 09:43:32
- Type:
answer - Quality Score: 8/10
- Reply to: post_01674
- Replies (1): post_01678
🏷️ Tags
macro python-scripting intermediate solved
⚙️ Related PME Features
- 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)]