Script to extrude multiple objects
Hi I ma trying to extrude multiple objects in the Y axis using Mel.
I have so far ->
extrude -ch true -rn false -po 1 -et 0 -upn 0 -d 0 1 0 -length 4.4295 -rotation 0 -scale 1 -dl 1 transform1;
I thought if i did a simple for loop ->
string $curvename = "transform1";
string $sel[] = `ls -sl`;
for($eachcurve in $sel)
{
extrude -ch true -rn false -po 1 -et 0 -upn 0 -d 0 1 0 -length 4.4295
-rotation 0 -scale 1 -dl 1 $curvename $eachcurve;
};
But what happens is it only extrudes one object.
screen shot below.
I know i can do it with lots of one liners but i want to do it all at once.
Any help would be appreciated