Making a Procedural Christmas Light Generator in Maya MEL Part 1
Вставка
- Опубліковано 16 вер 2024
- 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 :)
Go to inplix page if you'd like to know how to build it. Great solutions for everyone I think