Set and load Renderer at Startup

Now and then Maya forgets to load “mental ray”. To avoid the hassle of  having to manually load the plugin, i wrote a simple script that is executed by the (Maya searches and executes this file when Maya starts).

Step 1

First create a file at following location:

  • Windows: <drive>:\Documents and Settings\<username>\My Documents\maya\<Version>\scripts
  • Mac OS X: ~/Library/Preferences/Autodesk/maya/<version>/scripts
  • Linux: ~/maya/<version>/scripts

Step 2

Copy and paste this script

Step 3

Now you have to add at the end of the file a line of code that loads the Render you are using. By default Mental Ray will be loaded. However you also can define a different function to load the renderer you are using like Arnold.