I have an old export script that does no longer work now. Can you please help me?
I need the vertex positions (global) of the selected mesh for each animation keyframe.
The old code was:
startFr = Blender.Get('staframe')
endFr = Blender.Get('endframe')
#get the currently selected data structure
mesh_obj = Blender.Object.GetSelected()
for vertex in mesh.verts:
v = (vertex.co)
I think the rest should be compatible.
Can you also please put me a link where I can read up these commands?
best way would be to build an operator for this. that would look like:
bl_description="get vertex positions for each frame"
def invoke(self, context, event):
scene = context.scene
startFr = scene.frame_start
endFr = scene.frame_end
mesh_obj = context.object
for i in range(startFr, endFr+1):
for vert in mesh_obj.data.vertices:
v = vert.co
#do your stuff with it