📋 Metadata

💬 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