//author : Walter Behrnes //title : blendshapes to control object //version : 1.0 //date last motified : couple of weeks ago from 6-11-2003 //instructions: //1 open script editor, clear it out. //2 replace the BlendShape variable with your blendshape node. //3 replace the Controller with your Controller node. //4 replace the blendshape names with your blendshape names. //5 open this file in your script editor HIT ENTER. //6 copy the output melscript (in the output window of the script editor) into your expression editor. //Name of BlendShape string $myBlendObj = "blendShape1"; //controller for Blend Shapes string $myCtrl = "Head_CTR"; //BlendShapeNames sting $myBlends[] = {"Smile", "R_Smile", "L_Smile", "Frown", "R_Frown", "L_Frown", "O", "Talk1", "Talk2", "Ahh1", "Ahh2", "Cheeks", "L_Cheek", "R_Cheek", "LeyeClose", "LeyeWide", "ReyeClose", "ReyeWide"}; //Size of BlendShape Array int $myBlendSize = size($myBlends); //add attributes for($i =0; $i<$myBlendSize;$i++) { //add attributes to controller addAttr -k 1 -min 0 -max 10 -ln $myBlends[$i] -at double $myCtrl; //write out code for expression to drive blendshapes print("\n"+$myBlendObj+"."+$myBlends[$i]+" = (("+$myCtrl+"."+$myBlends[$i]+")*.1);"); }