I'm doing simple handler script that gets appended to bpy.app.handlers.frame_change_post
.
Every time I do a changes to it and hit Alt+P it registers itself again with a new version. after a bit I have 10 of the scripts running happily on every frame change.
How can I get rid of the old running versions without closing and reopening Blender, which seems to be the only option now?
I tried adding unregistering with bpy.app.handlers.frame_change_post.remove()
but that is just throwing an error as if my script wasn't on the list. while at the same time print(bpy.app.handlers.frame_change_post)
is showing my function name there in growing numbers :)
so, what's the best practice developing and running these?
thanks.
.b