PDA

View Full Version : Make a mel script "live" - like a deformer


geoff3dnz
09-17-2009, 03:21 AM
Hi there,

I've written a little mel script which moves a mesh's vertices in space, but I'd like to make the tool "live" (like a deformer) where I can drag a slider to affect where the points are in space (slider at zero - original position, slider at 10 - points have been moved 10 units accordingly).

I'd also like to be able to save the scene and have the scene remember these things (like the verts' original position) which doesn't really work with a mel script alone, but would as a deformer.

Is this going to have to be done as a plugin? And if so, what do I need to download from Autodesk to get started? (considering I have never written a plugin in my life - only mel scripts).

dbsmith
09-17-2009, 03:51 AM
Check out the devkit folder for many example plugins.
C:\Program Files\Autodesk\Maya2009\devkit\plug-ins

There's documentation for them online too.
Start here perhaps
http://caad.arch.ethz.ch/info/maya/manual/DevKit/PlugInsAPI/

And then find a plugin that exists in the devkit thats similar to what you want to do, and take it from there.

CGTalk Moderation
09-17-2009, 03:51 AM
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.