I am trying to extract animated vertex information. I have a scene set up with a simple triangle that is animated via a shape key. On frame 1 its ine one location and in frame 5 it is else where.
Now I am trying to get the location of these vertices on each of the different frames but so far been unable to see to .co get updated.
import bpy # frames fr_start=bpy.data.scenes.frame_start fr_end=bpy.data.scenes.frame_end # total frames total_fr=(fr_end-fr_start) print("") print("") print("total frames=",total_fr) mesh=bpy.context.selected_objects #set frame to first one for r in range(0,total_fr): print("working frame = ",r+fr_start) bpy.data.scenes.frame_set(r+fr_start) mesh.data.update() #Though this might do it! if r==0: print("capture 1st",mesh.data.vertices.co) else: print("export delta",mesh.data.vertices.co)
Any idea on how I can see the updated location of these verts on each frame?