oreanimate
04-25-2006, 02:55 AM
i found a blendshape mirroring script that was workin great, now for some reason it doesn't seem to want to cooperate. the error message that appears is "no object(s) to duplicate." i am not the most mel savy guy around and i was wondering if anyone could help. below is a copy of the script i am tryin to execute, if anyone could help me out, i would great appreciate it.
string $sel[] = `ls -sl`;
string $base = $sel[1];
string $shape = $sel[0];
string $nShape[] = `duplicate -name "newShape" $base`;
string $temp[] = `duplicate $base`;
string $blendName[] = `blendShape -name "tmpBlend" $shape $temp[0]`;
setAttr -l 0 ($temp[0] + ".scaleX");
setAttr ($temp[0] + ".scaleX") (-1);
string $grp = `group $temp[0] $nShape[0]`;
setAttr ($grp + ".s") 50 50 50;
select -r $nShape[0] $temp[0];
string $wrapName[] = `doWrapArgList "2" { "1","0","0.01" }`;
setAttr ($blendName[0] + "." + $shape) 1;
DeleteHistory;
setAttr ($grp + ".s") 1 1 1;
parent -w $nShape;
delete $grp;
string $sel[] = `ls -sl`;
string $base = $sel[1];
string $shape = $sel[0];
string $nShape[] = `duplicate -name "newShape" $base`;
string $temp[] = `duplicate $base`;
string $blendName[] = `blendShape -name "tmpBlend" $shape $temp[0]`;
setAttr -l 0 ($temp[0] + ".scaleX");
setAttr ($temp[0] + ".scaleX") (-1);
string $grp = `group $temp[0] $nShape[0]`;
setAttr ($grp + ".s") 50 50 50;
select -r $nShape[0] $temp[0];
string $wrapName[] = `doWrapArgList "2" { "1","0","0.01" }`;
setAttr ($blendName[0] + "." + $shape) 1;
DeleteHistory;
setAttr ($grp + ".s") 1 1 1;
parent -w $nShape;
delete $grp;
