PDA

View Full Version : MObject question???


Flip86
07-22-2010, 05:12 PM
hey ,

i try to write a custom ik solver for maya with the maya api and c++. the solver should contain the posibility to stretch the joints. for that i want to use the MFnTransform class and the member function .scaleBy for scaling the joints. in the documentation about this class you can see that scaleBy needs an MObject.
now my question: how can i put my ,for example startjoint, into the MObject? what class can i use for that?

thanks

Gravedigger
07-23-2010, 01:11 PM
hi philipp,

do you want to edit existing joints? if yes how do you want them to be sent to your plugin? over selection? if yes then simply use the selection list. you can then iterate through the list and get the dagPath and a pointer of type MObject

hit me up in skype if you need help
grs
Patrik

CGTalk Moderation
07-23-2010, 01:11 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.