View Full Version : mirroring blendshape script broke!

04 April 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;
setAttr ($grp + ".s") 1 1 1;
parent -w $nShape;
delete $grp;

04 April 2006, 09:10 AM
hay, I wrote that! :surprised

the script requires (and assumes) that you have selected the modeled shape (left or right side) THEN a symmetrical version of the mesh.

sure I should have put in some proper warnings/errors before posting it on the net.. but umm... I'm a lazy bum :shrug:

but I'm pretty sure I put a usage ;^)


CGTalk Moderation
04 April 2006, 09:10 AM
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.