How Do I Add Keyframes Via Python


I am confused about how to go about moving objects and scripting
keyframes, using python scripts, prior to animation.

I want my python script to enact changes in the scene
and then apply a keyframe for that setup. Then my python script
moves on to the next scene…etc.

Is this possible?

Thanks for any help,


Your post is a little confusing. I would suggest reading the python API found at in the python forum.
In regard to your question - you can keyframe a mesh in python currently. And you can change the scene’s current frame. You can also add IPO curves to various objects.