I started working with blender a few days ago, because i need it for a university project. Therefore I importet a makehuman model and change the pose of this model via a python script (i.e. the scale and rotation of three bones).
bpy.context.object.pose.bones['hand.fk.R'].rotation_euler = 0
Now I want to get the location of a sample vertex after such transformations. My current approach is transform the object to a mesh with this code
C = bpy.context render = bpy.context.scene.render me = bpy.data.objects['makehumanMesh'].to_mesh(scene=C.scene, apply_modifiers=True, settings='PREVIEW') wco = me.vertices[idx].co
But this changes the indices of the vertices, so I have no correspondences between the original vertices and the transformed ones.
Probably someone of you can help me!