Get mode (object, face, edge, point) with python
-
I'm working on an alignment tool and I need to know if the user is currently manipulating edges, vertices or face or is in object mode.
Is there a way to query the current mode state with python? So i want to know which of these buttons is selected.
l) -
See the docs: BaseDocument.GetMode()
-
Hello,
the edit mode is stored with the current BaseDocument and accessed with GetMode(). See also IsEditMode().
if doc.GetMode() != c4d.Mmodel: return
best wishes,
Sebastian -
Thanks Sebastian.