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.
the edit mode is stored with the current BaseDocument and accessed with GetMode(). See also IsEditMode().
if doc.GetMode() != c4d.Mmodel:
See the docs: BaseDocument.GetMode()