Ok, so I'm writing a script to import a file with the skin weights for all the vertices of a mesh object. I'm practically done, the only thing I can't get to work is actually assigning the weights to the vertices, one at a time. I performed some skin weight assignments in the Component Editor and checked the MEL commands it used, and came up with this:
skinPercent -tv $Influence[$c] $vertexValue[$c] $skinCluster[0] $vertexNumber[$j];
Where $Influence[$c] is the name of the joint/influnce object, $vertexValue[$c] is the numerical value I want to assign to that vertex, $skinCluster is the name of the skin cluster, and vertex number is the text describing the vertex to assign to.
However, this isn't working in my procedure. I've noticed someone else used a setAttr command, only I wasn't able to understand what values/variable to fit in where with that one, and someone also used a similar command, only with the eval function.
Anyone have a recommendation on how to go about setting these values? And if so, could you provide me with a written example of the names fit in for the variables if at all possible?