PDA

View Full Version : Mesh Manipulation in Maya plugin


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 :)

CGTalk Moderation
07-15-2007, 12:52 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.