Mesh vertex animation
My prerequisites: Little to no experience with blender, advanced experience in python
Starting Point: Mesh M with n vertices and m faces as .obj file.
Next step : Change coordinates of the n vertices incrementally.
What I have : Python script that calculates the new vertex coordinates for X timesteps
What I need : How to apply the list of new vertex coordinates to the mesh in blender with the related timesteps (=frames). (Python API of blender?) Is there something like:
for timestep in range(0,len(timesteps)): newCoordinates = calculateCoordinates(mesh.vertices, timestep) mesh.co = newCoordinates mesh.Update() # --> add keyframe to animation
What I tried: