rendering

Scripting in Maya with MEL and Python

Contents

Sample Scripts

What is MEL

Maya Embedded Language (MEL) is a native scripting language in Maya.

The MEL used for each task performed in GUI can be viewed in “Script Editor”.

What is Python in Maya

Python in Maya uses Maya built-in Python 2.7.

To use Maya commands, include “maya.cmds” in the Python script.

How to Use Scripts in Maya

Both Python in Maya and MEL can perform the same task in Maya.

For docs of any command, click python version or MEL version at top-right of the page to toggle.

To use a script in Maya: