Overview of Maya ASCII file format
 
 
 

Maya scene files define the geometry, lighting, animation, rendering, and other properties of a scene.

Maya scenes can be saved as binary or ASCII files. A Maya ASCII file can be easily edited.

If you have written a script using Maya’s MEL® programming language, you are already familiar with the Maya ASCII file format. A Maya ASCII file uses a tiny subset of the MEL language—in fact, of the hundreds of commands available in MEL, only eleven are used:

These MEL commands are the only MEL commands that can be safely used in a Maya ASCII file.

If you are not familiar with MEL, you may want to look at the MEL documentation before continuing. See MEL Overview in the MEL and Expressions book for details.

A statement in MEL consists of a keyword, followed by a series of options and arguments, and ends in a semicolon. A statement can span any number of lines in the file.

For the examples in this chapter, the following typefaces designate the keywords, options, and arguments:

Keywords and options are in bold-face type, such as bump or -s. The option is always preceded by a dash.

Arguments are in non-bold italic, such as u or file.txb. The names of the arguments are arbitrary labels. In your files, use the actual value or string.