Python

Python

Anonymous
Not applicable
942 Views
3 Replies
Message 1 of 4

Python

Anonymous
Not applicable

Hi. Help me. I need the module and method to get the skinCluster maps for Python in Maya. I need its alpha photos without confirming Maya's message. Thanks

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

jmreinhart
Advisor
Advisor
Accepted solution

This command should work for you:

exportSkinWeightMap( "/home/test_export", "iff")

 

You can't find documentation for it (as far as I know) unless you actually go to the .mel and look at it (that's how I found this command). The directory where I found it was /usr/autodesk/maya2019.2/scripts/others on my computer.

 

Do you need the weights to be in the form of images though? If not you can use this command (which has much better documentation but exports the weights as a single xml file):

deformerWeights -export -deformer "skinCluster1" -format "XML" -path "/home/" "test_export.xml";

Message 3 of 4

Anonymous
Not applicable

Thank you very much for leaving me. I saw your help now. It will help me a lot.

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hello friends . I need your guidance.
I want to write a shader myself like Lambert . (HLSL or GLSL or ........ ?)
I wanted to know how to use it in Maya. How to import it into Maya. And in what language to write it. To work better and faster. Thank you.

 

If you give me an example. It will help me a lot.

0 Likes