Post #3651: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

šŸ“‹ Metadata

šŸ·ļø Tags

macro scripting intermediate solved

  • Macro Editor
  • Python Scripting

šŸ’¬ Content

anphung:

return C.scene.tool_settings.mesh_select_mode[0]

How would you add another select mode to this code? ā€œ1ā€ for example.
I’m trying to make a macro that only works in vertex & edge mode.

Vertex and Edge mode (both are active):

return C.scene.tool_settings.mesh_select_mode[0] and C.scene.tool_settings.mesh_select_mode[1]

Vertex or Edge mode (one of them or both are active):

return C.scene.tool_settings.mesh_select_mode[0] or C.scene.tool_settings.mesh_select_mode[1]

ā¤ļø 3 likes


šŸ”— View on Blender Artists