2009

Table Of Contents
4 Click the MEL button on the pop-up window.
A Shelf button is created that executes the scripting commands you
dragged to the shelf setting up three-point lighting for a scene.
To test the Shelf button
1 Open the scene named Mel_Cone.ma.
This file can be found in the GettingStarted directory that you set as
your Maya project:
GettingStarted/scenes/Mel_Cone.ma
2 Render the scene in the perspective view by selecting the render scene
button
on the Status Line.
3 Save the rendered image by clicking the Keep Image button
in the
Render View.
4 Click your newly created MEL Shelf button.
Three point lighting is applied to the scene.
5 Render the scene again by selecting the render scene button on the
Status Line.
6 Compare the two images using the scroll bar at the bottom of the window.
612 | Chapter 13 Scripting in Maya