See or record the MEL commands associated with actions

 
 
 

In the Script Editor, turn on History > Echo All Commands.

As you work in Maya, all the MEL commands Maya uses internally to execute actions and change the user interface will be printed in the Script Editor.

To record a series of actions

  1. Turn on Echo All Commands.
  2. Perform the actions you want to record.
  3. Select the commands in the Script Editor and do one of the following:
    • To make a shelf button that executes the recorded commands, in the Script Editor menus select File > Save Script to Shelf.
    • To save the recorded commands to a file, in the Script Editor menus select File > Save Script.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License