oops! Found a spelling syntax error on my original post so here is it updated (I for got the (s) in the for ($x=0; $x <size($locs); $x++)
///////////////////////////////////////////////////
////////////////// MTO_2015 ////////////////////
///////////////////////////////////////////////////
string $locs[] = ls -sl -type "transform"
;
int $x;
print $x;
for ($x = 0; $x < size($locs); $x++)
{
print ("$loc" + ($x+1) + "[" + $x + "]"); /*This was to test that the First part of the Float was working the part where it = is where I am having trouble*/
float ("$loc" + ($x+1) + "[" + $x + "]") = xform -q -ws -rotatPivot
;
}
//testing vars again
float $locRp[] = xform -q -ws -rotatePivot
;
print $locRp[0]
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I have Also tryed another version of trying to find a way to fix the concatination problem /// again creat two or more locators to oper ate the code
///////////////////////////////////////////////////
////////////////// MTO_2015 ////////////////////
///////////////////////////////////////////////////
string $locs[] = ls -sl -type "transform"
;
int $x;
print $x;
for ($x = 0; $x < size($locs); $x++)
{
print ("$loc" + ($x+1) + "[]");
////////////////////////////PROBLEM AREA IS IN COMENTS FOR TESTING//////////////////////////////////////////////////
//float ("$loc" + ($x+1) + "[]");
//$loc[$x] = xform -q -ws -rotatePivot $locs[$x]
;
//print $loc[$x];
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
//testing vars again
float $locRp[] = xform -q -ws -rotatePivot
;
print $locRp[0]
//////////////////////////////////////////////////////