Python in Animation

Can one use python in Animation.

i.e.

After performing the appropriate armature etc. movements, (just before rendering the frame) blender calls a (defined by me) python script, passing in the frame number.

My script then does it’s modifications to the scene, before it is at last rendered?

If so, where is a good place to start? I haven’t found anything yet, which makes me suspect that this facility doesn’t exist.

J.

sure you can!

you just set the script link to FrameChanged mode and it runs the script on every frame change… works with rendering animations as well as editing.

if you need the current frame you can get it with a certain call to blender… don’t remember what it was but it’s nothing conplicated and I’m sure someone else will remember & tell you.

with the curent frame you can for example reset the thing your python script does by “if cur_frame == 1 put all changes to beginning”…

Sure, just see this message:
https://blenderartists.org/forum/viewtopic.php?p=88405&highlight=#88405

regards