string $tempList[] = `ls -sl`;
int $count;
for($count=0;size($tempList)-1;$count++)
{
addAttr -ln "SCALE" -at double $tempList[$count];
string $tempScale = stringArrayToString({$tempList[$count],".SCALE"},"");
setAttr -e -keyable true $tempScale;
string $tempOriginScaleX = stringArrayToString({$tempList[$count],".scaleX"},"");
string $tempOriginScaleY = stringArrayToString({$tempList[$count],".scaleY"},"");
string $tempOriginScaleZ = stringArrayToString({$tempList[$count],".scaleZ"},"");
string $tempEXPX=stringArrayToString({$tempOriginScaleX,"=",$tempScale},"");
string $tempEXPY=stringArrayToString({$tempOriginScaleY,"=",$tempScale},"");
string $tempEXPZ=stringArrayToString({$tempOriginScaleZ,"=",$tempScale},"");
string $tempTotal=stringArrayToString({$tempEXPX,$tempEXPY,$tempEXPZ,""},";\n");
expression -s $tempTotal;
}
설명은 생략합니다.