View Single Post
# 1 01-06-2011 , 04:08 PM
mechanicarts's Avatar
Registered User
Join Date: Mar 2011
Posts: 45

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?user added image