Spiral Circle of ObjectsMaya MEL ScriptThis is my first MEL script excercise. I would've never thought I could do this. Looking forward to see more progress.
What it does: generate an spiral array of spheres.
Second Version
|
April 14th, 2013
|
First Version
- Basic loop that generates spiral.
for($i = 0; $i < $totalNum; $i++)
{
$r = $circleSize;
$theta = $i * $circleAngle * (3.14159265358979323846 / 180);
$x = ($r - $i * $out) * cos(deg_to_rad($theta)) + $xcenter;
$y = ($r - $i * $out) * sin(deg_to_rad($theta)) + $ycenter;
sphere -r $objectSize -p $x ($zcenter * $i) $y;
} |