PDA

View Full Version : API: Newbie Deformer Question


JoshM
03-19-2009, 11:46 PM
I have a fair amount of programming experience but this is the first time I am developing something within the Maya API. So please excuse the novice question.

I'm writing a time-based deformer and as such I need to connect the global time (time1) node to a time attribute that I created for my deformer. I don't need to create any nodes so would the correct place to make this connection be in the deform() function? Or would I need to make a command derived from the MPxCommand class and handle the connections within the doIt() function of the command?

A simple example would be awesome!

Any help will be much appreciated.

Thanks in advance,
Josh

RyanT
03-20-2009, 01:28 AM
To create a deformer you do need to create a deformer node that drives the mesh of what you want to deform.

Here is the online Maya API help docs on deformers:

http://download.autodesk.com/us/maya/2009help/index.html?url=Writing_a_Deformer_Node_Deformer_Node_Example.htm,topicNumber=d0e646949

Also I highly recommend this book. Very handy to have on hand.

http://www.amazon.com/Complete-Maya-Programming-Vol-Depth/dp/0120884828/ref=sr_1_2?ie=UTF8&s=books&qid=1237508652&sr=8-2

CGTalk Moderation
03-20-2009, 01:28 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.