hello people..
im doing some plugin nonsense trying to obtain the coordinates for the vertices of an animated polygonal mesh over the course of an animation..
ive been using the MFnMesh.getPoints routine to get a list of all the verts in my mesh for each frame of the anim.
it looks something like this...
MSpace::Space space = MSpace::kWorld;
MFnMesh myMesh( mdagPath, &stat );
MFloatPointArray allVerts;
then for every frame i do this..
myMesh.getPoints( allVerts, space );
and for every vert i try to get its coords like this..
MFloatPoint currentVertice = allVerts[vertIndexNum];
vertXpos = currentVertice[0];
vertYpos = currentVertice[1];
vertZpos = currentVertice[2];
this works great but im finding that any frame to frame transformations on the vertices, either by skeletons or lattices, are not coming through.. all i can ever get is the original, untransformed coordinates for each vertex.
so i am hoping that someone can please help me figure out what i have to do in order to get the animated vertex coords i so badly need. ive been beating my head against a wall with this one. any help would be greatly appreciated.
thanks for your time.
keith.
kbeu@midwaygames.com