Untitled
unknown
plain_text
3 years ago
614 B
10
Indexable
//For transferring shapes to other characters. Add the p_head of the new character as a new target on an existing character with finished shapes in a blendshape node and run the script.
$head = "p_head";
$bsNode = "head_bs";
string $blendshapes[] = `listAttr -m -st "weight" $bsNode`;
$listSize = size($blendshapes)+1;
for ($i=0; $i<$listSize; ++$i)
{
string $name = $blendshapes[$i];
setAttr ($bsNode+"."+$blendshapes[$i]) 1;
select -r -sym $head;
duplicate -rr;
setAttr ($bsNode+"."+$blendshapes[$i]) 0;
rename ($head + "1") $name;
}Editor is loading...