Post #5117: Sorry, I made a mistake; if Poll is the target, write the following. This will c
📋 Metadata
- Author: Pluglug
- Date: 2024-04-30 09:23:12
- Type:
answer - Quality Score: 7/10
- Reply to: post_05116
- Replies (1): post_05118
🏷️ Tags
macro python-scripting intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Sorry, I made a mistake; if Poll is the target, write the following. This will cause the Bool value to RETURN.use the OR operator.
modes = context.tool_settings.mesh_select_mode; return modes[0] or modes[1]