Hello!
in mel unfortunately you cant create arrays of arrays. But as you have a discrete number of variables (xmin ymin zmin xmax ymax zmax) you could just create 2 vector arrays for min and max.
CODE
{
// create arrays in the beginning
string $selObjects[] = ls -sl
;
vector $minArray[], $maxArray[];
// loop through items in selection and store their bounding box info
int $sizeSelObj = size($selObjects);
for ($i = 0; $i < $sizeSelObj; $i++)
{
$minArray[$i] = getAttr($selObjects[$i] + ".boundingBoxMin");
$maxArray[$i] = getAttr($selObjects[$i] + ".boundingBoxMax");
}
// just printout stuff:
print "$selObjects array:\n";
print $selObjects;
print "$minArray:\n";
print $minArray;
print "$maxArray:\n";
print $maxArray;
}
You see: you'd have to define the array before the loop. Its completely normal that its overwritten if you define it in the loop!
Oh btw: {scope} your stuff!!! and use the darn code tags
!! :]