I would like to copy weight values from selected vertices and then paste them back into the selection again later. How can I do this? Maya only seems to let you copy/ paste vertices of the whole model not just some of the vertices.
copying weights
I use cometSaveWeights to save to a file. You can save and reload selected verts and do things like joint name search and replace, paring small weights etc. If you need this for 2011 or higher, you’ll need to make a small change to the script (let me know if you need help).
I also use zooWeightSave to store the weights on the verts as blind data. This is useful if you need to change the topology (point order may change).
David
Thanks for your reply! These scripts look like they will work great for me and help my project out immensely.
I am using Maya2012.
With the cometSaveWeights tool I get this error when hitting the skin cluster button
// Error: Cannot find procedure “libSkin_getSkinFromGeo”.
I don’t know anything about scripting so I’d really appreciate any info about how/what I need to change in these scripts to get them to work with Maya 2012.
The zooWeightSave looks incredibly useful but I am having difficulty setting that up as well. I don’t seem to be able to run just that script by itself so I have extracted all the scripts in the zooToolbox into my script directory:
C:\Program Files\Autodesk\Maya2012\scripts
I then run zooToolbox in the mel command line but I get this error:
// Error: Cannot find procedure “zooToolbox”.
Thanks for any help!
You’ll need to start the comet script like this
source "cometSaveWeights.mel"; cometSaveWeights() ;
That should work if you put all the comet scripts in one of the folders specified by the MAYA_SCRIPT_PATH environment variable. I’ve attached a version that should work in 2012 (where the skinCluster and joint list need slightly different processing).
The zoo scripts form a suit of tools, so it is best to place them all in the same folder and adding that folder to your scripts path. I start the tool by simply entering “zooWeightSave” (without the quotes). It does depend on other scripts - zooArrays_float.mel, zooArrays_str.mel, zooUtils.mel, zooRegister.mel - and sources them automatically if they are in your scripts path.
David
Awesome, the scripts work now,
Thanks again for all the help, these are going to save me loads of time while painting wieghts on characters faces for my project!
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.