Im writing a script for Blender v2.57b, and I need to be able to detect when the user enter or leave edit mode.
I search the API but couldn’t find anything else except:
but there’s no bpy.ops.object.mode_get…
There’s always bpy.context.edit_object that return None or the Object that is currently edited, but is there a more “elegant” way to do this?
All I need to know is 1 or 0 if Im in edit mode or not, anybody?