2010

Table Of Contents
5 Set the frame to greater than one to view the effects of the makeRoll
procedure.
6 Set the following values in the makeRoll user interface:
Ground Plane = 0
Diameter = 1.0
Box Simulation = checked
Sphere Simulation = unchecked
7 Click the Execute button to setup the makeRoll expressions.
8 Move the pyramid in X and Z to view the results of the makeRoll
procedure.
Explore different results that occur when you apply the makeRoll procedure
with different user interface control values. Since you cannot undo the
makeRoll procedure, you will have to create new geometry every time to apply
the makeRoll procedure.
When you open a new Maya session, the makeRoll user interface procedure
is no longer defined and must be sourced to use it.
Beyond the lesson
In this lesson, you learned how to create a user interface from an existing MEL
procedure. You can:
Create a window
Create user interface controls in a window
Use conditional statements to check the existence of a window
Use a built-in Maya procedure
Modify a user interface to add functionality
Access elements of an array
Query and edit user interface values
Save and source a script
702 | Chapter 13 Scripting in Maya