Maya API for skinning and binding, question.

Maya API for skinning and binding, question.

Anonymous
Not applicable
662 Views
2 Replies
Message 1 of 3

Maya API for skinning and binding, question.

Anonymous
Not applicable

I'm importing assets into a scene with an existing skeleton and mesh, and I need to bind and weight from the existing assets to the imported assets.  

 

I'm creating a plugin in C++ and I can't seem to find a class reference on how to bind a mesh to a skeleton, so am I right in guessing getWeight / setWeights will bind the mesh to the skeleton with influences and set the weights?

 

Is there no transfer weights method that could do this more easily? 

 

Will I have to getWeights() from the existing asset and setWeights() to the target asset? 

I'm importing the assets into the scene with a namespace so I know what ones are imported and what ones are exiting. 

 

 

0 Likes
Accepted solutions (1)
663 Views
2 Replies
Replies (2)
Message 2 of 3

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I am afraid it is not a good idea to do it with C++. MEL should be a better choice.

 

Yours,

Li

Message 3 of 3

Anonymous
Not applicable

Yeah, I actually realized that yesterday. Thanks for the reply! 

0 Likes