Here is my problem...
I am trying to take a joint and query all weight values for the given joint on a mesh. I get an error though.
some of this code is barrowed from the dwskinningTools. great mel.
CODE
//get joint
$jnt = ls -sl -fl;
//get skinCluster
$jSkinCL = listConnections -d on ($jnt[0] + ".worldMatrix");
//get skin mesh and mesh shape
$jSkinCLMesh = listConnections -d on ($jSkinCL[0] + ".outputGeometry[0]");
$jSkinCLMeshShpArray = listRelatives -s $jSkinCLMesh;
string $jSkinCLMeshShp = $jSkinCLMeshShapeArray[0];
string $jSkinMeshShpType = objectType $jSkinCLMeshShp;
string $pnts[];
//get skin mesh points
string $skinClusterSet[] = listConnections -type objectSet $jSkinCL;
string $components[] = sets -q $skinClusterSet[0];
$components = filterExpand -sm 36 -sm 28 -sm 31 -sm 46 $components;
//query weight value for all point on $jnt (joint)
string $c;
for( $c in $components ){
print $c;
print "\n";
$infValue = skinPercent -t $jnt -q -v $jSkinCL $c;
}
// Error: line 31: Invalid argument: skinCluster1 //
thanks
Sorry if this seems like something that has already been posted, but there wasn't anything there for me to use.
Scott