A (most probably) very easy script...please correct!
Here I am, making my first script, using MEL Reference...but of course it is wrong, since I've never ever programmed again...
I have a surface "extrudedSurface36" which I want to duplicate 35 times around the pivot, so that I have something like a cone cage...Essentially, I want each new copy to be rotated 10 degrees, and when the copies reach 35, the script stops...here is what I have so far.
Code:
int $angl = 10;
$name = 36;
string $namestring;
while ($angl<=351)
{
$namestring = "extrudedSurface",$name;
select -r $namestring;
duplicate;
rename $namestring
rotate -y 0 $angl 0;
$angl = $angl + 10;
$name++;
}
But of course it is wrong. Any ideas?