First, locate your userSetup.mel file. If it exists, it is located by default in the following directories
[Linux] ~/maya/
If it doesn't exist you can either create it in the appropriate directory above or anywhere in your MAYA_SCRIPTS_PATH. Finally, in the userSetup.mel file, add the following line:
if(!`pluginInfo -q -l -n "PLUGIN_NAME"`) loadPlugin "PLUGIN_NAME";
Mental ray is notorious for not autoloading. Use the following line in userSetup.mel and mental ray and Maya will never forget to load mental ray ever again:
if(!`pluginInfo -q -l -n "Mayatomr"`) loadPlugin "Mayatomr";
You can also use this to autoload mel scripts as well. For example, assuming you have pelting tools installed in your scripts path, add the following line:
source "scripts/peltingToolsSetup.mel"
No comments:
Post a Comment