Maya startup – userSetup.mel

I was searching a way to automatically load PyMel and other tools on Mayas startup.

All you have to do is adding a few lines to you userSetup.mel file.

To locate your userSetup file on computer use this mel command:

print `whatIs "userSetup.mel"`;

Use a texteditor and copy the following code:

# loads mentalray on startup
autoLoadPlugin("", "Mayatomr","Mayatomr");

# imports pymel
python("import pymel.core as pm");

# imports maya.cmds (python)
python("import maya.cmds as cmds");

Categorised as: Uncategorized

Comments are closed.