Lab 2 - MEL 1
 
 
Problem 1:
 
(a) Write a MEL script that draws 5 evenly-spaced spheres along the x-axis.
 
(b) Write a MEL script that draws 5 evenly-spaced cones along the x-axis instead.
 
(c) Write a MEL script that draws 5 evenly-spaced objects along the x-axis, where each object is randomly chosen to be either a sphere or a cone.
 
(d) Write a MEL script that does the same as (c) but composes a string first containing all 5 commands and then calls "eval()" once to draw it. Use a loop in the process.
 
 
 
Problem 2:
 
Download the Maya scene Commedia.ma and the MEL script scaleSkeleton.mel. Experiment with scaling the characters without using the scaleSkeleton.mel script. Scale each of the six characters differently. Then experiment with the scaleSkeleton.mel script to resize each of the six characters in Commedia.ma. Did it work right? If not, try fixing the databases so it works correctly. Try unbinding and rebinding. Whether this is right or wrong, modify the scaleSkeleton.mel script so it scales the geometry itself with the same scale factor that it scaled the joints and see if that fixes the problem. To do that you will have to analyze the script enough to figure out what to change and how to change it. Ask Duane or Isaac if you have questions.
Problem 3:
 
(a) Write a MEL script that draws a sequence of evenly-spaced spheres in a spiral that moves up in the "y" direction..
 
(b) Write a MEL script that draws a sequence of evenly-spaced cones and spheres that moves up in the "y" direction.  The cones and spheres should be chosen randomly.
.