MEL Lab 2
 
 
(1) Write a MEL script that draws 20 evenly-spaced spheres along the x-axis. Use a "while" loop to do it.
 
(2) Write a MEL script that draws 20 evenly-spaced objects along the x-axis, where each object is randomly chosen to be either a sphere or a cone. Use a "while" loop.
 
(3) Using the "ls" command and results of number 2:
(a) List only the spheres.

 

(b) List only the cones.
 
(c) Print out the name of every fifth object you find in your scene.
 
(d) Switch all the cones in the line to be spheres and the spheres to be cones. Animate them as we did last week.
 

 

(4) Using the GUI, create a skeleton with 12 joints.
(a) Create an expression that makes the skeleton wiggle in a jittery fashion.
 
 
 
 
(5) TEXT SET:
 
(a) Do the exercise in the Gould textbook on pages 57 through 60 to get familiar with "textCurves".
 
(b) Modify the script to write your name in a different position of the screen each time it is called. Call it 20 times as a MEL shelf button.
 
(c) Rewrite the script to display your name in a different size and different position each time it is called. Add a "while" loop to it to do it 20 times. Call it once as a MEL shelf button.
 
(d) Change it to use different fonts as well and repeat #c with four different fonts.
 
 
 
 
 
(6) Create a spiral of objects moving upward and outward. The spiral is formed by randomly placed cones and spheres.