I have an object A.
I use a script to build an object B, depending on A’s position in space.
I would like to run my script automatically every time A’s position is changed ( manually or by animation) to update B.
So I understand I need to use a handler like this :
import bpy from bpy.app.handlers import persistent @persistent def load_handler(dummy): print("Load Handler:", bpy.data.filepath) bpy.app.handlers.load_post.append(load_handler)
… except that’s it is not the right handler.
depsgraph_update_post may be the one but I am not sure.
For this, I need help …
Another important point : If I add this structure to my script, I will have to run it once and it will run at every change on objects … untill … untill what ? How can it be stopped ?