Forum

Retrieve vertex positions within animation

Hi,I have an animation which is baked with "bake vertex animation" then in javascript i would like to calculate triangle area for each triangle in every animation frame. So far i managed to get vertex positions by:

I tried extract_vertex_array() and I could not get updated (frame-by-frame) values with a vertex animation, but it does work with a shape key animation, so I guess this function is meant for shape keys.

However, you can extract the data from a vertex animation directly in Blender, via Python: