Hey guys, this is my first post on simplymaya.com, but I heard this is a pretty good forum. Here's the deal: I'm trying to write a script that takes a group of selected objects and sets the translateY for each object equal to the translateZ. In the script below, no matter what I try, I get the error message: // Error: for ($i = 0, $i < $tempArrSize, $i++){ // // Error: Syntax error // // Error: }; // // Error: Syntax error // Here's the script. If anyone has any idea how I can fix this, PLEASE help me out. I've tried a post in other forums with little success so I'm running out of resources. Thanks in advance. //sinfunc: function takes a group of selected objects and //graphs them according to the equation y = z global proc sinfunc(){ //stores each selected object in an array string $sel[]; $sel = `ls -sl`; //defines some variables and sets the //$tempArrSize as the number of selected objects int $tempArrSize; int $i; string $tempObj; $tempArrSize = size($sel); //Moves through each object in $sel and sets //the translateY equal to the translateZ for ($i = 0, $i < $tempArrSize, $i++){ $tempObj = $sel[$i]; setAttr ($tempObj + "." + "translateY") ($tempObj + "." + "translateX"); } };