//This script groups curves. Update the size of i.//

for ($i = 1; $i < 2000; $i++) {

string $transform = ("transform"+$i);

select -r $transform;
select -hi;
select -d "tran*";
string $curves[] = `ls -sl`;


if (size($curves) != 0) {

group; xform -os -piv 0 0 0;
parent -w;

}

}

Go back to String Creation.