Hi,
I would like to call an operator everytime I change an Object.
So, like I change a curve, leave the Editmode and now a I want to automatically run an operator.
Maybe I can monitor a mesh and check if something changed.
Or, and I would prefer this, everytime I leave the Editmode on a certain object, the operator is executed.
I append a function to bpy.app.handlers.depsgraph_update_post …
But, I still try fo figure out how to check if a function is already there, or how to remove it…
i = 0
for handler in bpy.app.handlers.depsgraph_update_post:
if handler.__name__ == "test_handler_name":
bpy.app.handlers.depsgraph_update_post.remove(handler)
i = i + 1