I have parented a mesh to an armature using bone heat vertex groups.
I would like to manually calculate vertex coordinates for some frames in my animation.
(I know they can be accessed in Python using mesh.faces[].co[], but I need to export the bone rotations/offsets and calculate the vertex coords manually)
When a vertex is only part of one vertex group, the calculation is easy. Simply apply the bone rotation and offset from the corresponding bone.
When the vertex is part of multiple vertex groups, the calculation is harder.
For example I have a vertex that is in the groups “RightUpperLeg” and “RightLowerLeg”. The vertex position is somewhere in between where it would be if the vertex was only in the “RightUpperLeg” group or if the vertex was only in the “RightLowerLeg” group.
Both of the groups have a weight of 1.00.
So my question is, how are the rotation/offset of the two groups combined to calculate the vertex position?
Oh, I see now.
Each individual vertex has a Vertex Deform Group weight listed in the Transform Properties box.
How do you access the vertex Deform Group weights in Python?