Post #4835: A direct solution would be to branch within a single Stack Key’s Command rather

📋 Metadata

  • Author: Pluglug
  • Date: 2023-09-07 13:28:55
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_04834

🏷️ Tags

stack-key scripting intermediate solved

  • Stack Key Editor
  • Python Scripting

💬 Content

A direct solution would be to branch within a single Stack Key’s Command rather than branching across four Stack Keys using Poll.

Please replace the “XXXX_command” parts with the specific commands you wish to execute.

m = C.tool_settings.uv_select_mode; vert_command if m == 'VERTEX' else edge_command if m == 'EDGE' else face_command if m == 'FACE' else None

🔗 View on Blender Artists