numberNinja
07-15-2007, 12:52 PM
I have just started out writing plugins for Maya and could use some help with my technique for manipulating meshes.
Right now if I want to change the locations of points in the mesh I am doing this:
MPointArray original_pts, pts;
meshFn.getPoints(original_pts);
meshFn.getPoints(pts);
// modify point data in pts
meshFn.setPoints(pts);
outputMeshHnd.set( inputMeshObj );
meshFn.setPoints(original_pts);
This seems pretty ugly to me and I am sure that there must be a better way to do the same thing in a more Maya way.
All help gratefully received :)
Right now if I want to change the locations of points in the mesh I am doing this:
MPointArray original_pts, pts;
meshFn.getPoints(original_pts);
meshFn.getPoints(pts);
// modify point data in pts
meshFn.setPoints(pts);
outputMeshHnd.set( inputMeshObj );
meshFn.setPoints(original_pts);
This seems pretty ugly to me and I am sure that there must be a better way to do the same thing in a more Maya way.
All help gratefully received :)
