2009

Table Of Contents
makeRoll roll_Cube 0 1 1.0;
The makeRoll procedure requires the following arguments: the name of
the object to act on, the height of the ground plane, the type of
simulation, and the diameter of the object. The type of simulation is
either box or sphere simulation. Rolling simulation is determined using
a bounding sphere when simulation type is set to 0, or a bounding box
when simulation type is set to 1.
3 Set the current frame to two by selecting the current frame box and typing
a two.
The expressions set up by the makeRoll procedure only take effect when
the frame is greater than one.
4 Select the cube with the Move tool.
5 Move the cube along the plane in X and Z using the Move tool.
The cube rolls on the ground plane.
You have successfully loaded and used the makeRoll procedure. Now, youll
link the procedure to a user interface.
Loading a script file
You can read and edit script files other people have created in the Script Editor.
In this section, you open a script that contains a completed user interface for
the makeRoll procedure. However, the user interface is only a layout, and does
not contain any functionality.
To prepare to open the script
1 In the Script Editor, ensure that Command > Show Line Numbers is
checked.
Loading a script file | 631