I want to do the following with Python:
I have 3 different menus, and I want them to appear, dependent on the selection mode.
So when I'm in faceselectmode, I want with the same button a different menu as if I'm in vertselectmode.
I think, with a for loop that could be possible, but I don't now how to set variables that makes sense and also the rest of that code could be complex.
So I just need a for loop which checks in which select mode I am in. Because it's possible that there could be more options chosen, I thought that the best solution would be to get only a special menu, when there is only one selection type.
So that's the code I have so far (doesn't work) the bool variables also could be one step too much.
from bpy.types import Menu
for bpy.ops.mesh.select_mode in type #what?
if type ='VERT'
elif type ='EDGE'
elif type = 'FACE'