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:
- PlugIn Animall seems to have that functionality, however, I was not able to get that to work for my problem
- Keyframe animation is an older post from 2015. The aim appears to be similar, however none of the code snippets is working nor is leading to the desired results