Hi, I want to store the mesh select mode at the beginning of my script, then select some vertices via python (managed to do that), and then restore the select mode at the end. How to do that? I tried:
SELECTMODE = context.tool_settings.mesh_select_mode
and at the end
bpy.context.tool_settings.mesh_select_mode = SELECTMODE
but that does not work. Also when I switch the select mode manually after the script ran, I lose my newly selected parts. The vertex selection does not convert to edge/face selection.
Any help greatly appreciated.