Share
 
 

Run MEL commands whenever Maya Creative starts up

Maya Creative runs any commands in the userSetup.mel file whenever it starts up. You can use this file to set up your working environment or execute commonly used MEL commands like aliasing.

The userSetup.mel/ userSetup.py script is executed during the initialization and setup phase of Maya Creative so only commands which set up your working environment and have no dependencies on Maya Creative functionality can be successfully run in this script.

To run a certain set of MEL commands every time Maya Creative starts up

  1. Create a file named userSetup.mel or userSetup.py in the following folder:
    • Windows: ..\My Documents\maya\<Version>\scripts
    • Mac OS X: ~/Library/Preferences/Autodesk/maya/<version>/scripts.
    • (where ~ is your home folder)

  2. In the userSetup.mel file, type the commands you want to Maya Creative to run on start up.
Note: You can control whether Maya automatically reads/executes userSetup via the Security Preferences.

Was this information helpful?