Adding weight painting to custom deformer (C++)

Adding weight painting to custom deformer (C++)

mostly_human
Advocate Advocate
374 Views
1 Reply
Message 1 of 2

Adding weight painting to custom deformer (C++)

mostly_human
Advocate
Advocate

I am doing an older C++ API course and it shows to add weight painting to a custom deformer to use a mel call:

 

MGlobal::executeCommand("makePaintable -attrType multiFloat -sm deformer blendNode weights;");

 

Everything is compiling but in Maya I just dont get the option to paint the weights for my deformer when right clicking the mesh and going to Paint, my deformer isnt showing up as an option.

 

Has something changed in the newer versions of the API?  Thank you for any help!

Accepted solutions (1)
375 Views
1 Reply
Reply (1)
Message 2 of 2

mostly_human
Advocate
Advocate
Accepted solution

I got it figured out.

 

MGlobal::executeCommand("makePaintable -attrType multiFloat -sm deformer blendMesh weights;");

 

Accidentally typed blendNode instead of blendMesh *facepalm*   Cheers!