ABSTRACT

This chapter focuses on how to write a simple Maya Embedded Language (MEL) script by observing the logged commands in the script window, constructing MEL script with correct syntax, and writing a particular user interface for inputting variables. MEL is a specific scripting language developed for Maya operation. The MEL script for executing the Super Extrude operation has three parts. The first part is to select all the faces of the object. Second, creation of a window and input fields to input values, which will be read as input variables by the operation. Last, using the values entered in the input fields to initiate a series of actions to create frames. Using "colorAtPoint" MEL script, designers can extract the RGB and alpha values per vertex and trigger duplicate operations according to the predefined rules. This method can be called the traffic light approach, where the driver's action is based on the color of the traffic lights.