Help find transformed vertex coordinates

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

Just wonder do you advance the current time before you call myMesh.getPoints like the following:

MAnimControl animControl;
MTime time(t);
animControl.setCurrentTime(time);

myMesh.getPoint(...)

I've tested a simple example (an animated lattice on a polygonal cube) and it returns the transformed vertices.

rgds,
pipit

I think pointPosition will do it... -l for local and -w for world...

pointPosition -l $vsel

so $vsel would be something like:
nurbsSphere1.cv[4][5] for NURBS
pSphere1.vtx[361] for polys
ffd1Lattice.pt[1][2][3] for lattices

hey pipit and mcomet, thanks for your replies.. pipit, i did in fact use a similar routine for advancing frames.. ive been doing some checking, and i think that my problem must have lay elsewhere because my code now seems to work! unfortunately this now leaves me quite confused as to why it wasnt working before... a small victory for keith, but a victory nonetheless i suppose.. again thanks for your help.. if i get another chance to break this thing ill probably be back.
keith.