Here's Part 1 of a multi-part MEL scripting tutorial that will go through the creation of a procedural christmas light generator from start to finish.
This part shows you the absolute basics of MEL, specifically walking you through creating a circle using MEL script and assigning variables to control the circle's radius.
The next part will walk you through using the created circles as a basis for extruding the Christmas light cord.
The final MEL script for this part is:
float $circle_radius = 4.2;
string $tube1[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius;
move -r ($circle_radius * .66) 0 0 ;
string $tube2[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius;
move -r ($circle_radius * -.66) 0 0 ;
ace in the face! good job keep it up :)
rocketfoxuk 1 year ago
AWSOME...thanks man...5*
NewsKid247 2 years ago