How can I get(not set) the active tool in Python? I know there is:
>>> bpy.context.workspace.tools.from_space_view3d_mode("EDIT_MESH", create=False).idname
'builtin.knife'
But it begs the question: How can I get the current "space view3d mode"(EDIT_MESH
in this case)? I tried:
>>> bpy.context.object.mode
'EDIT'
But it returned things like EDIT
and can't be used for bpy.context.workspace.tools.from_space_view3d_mode
.
context.mode
? $\endgroup$