First, create a file called maya.rayhosts.
The maya.rayhosts file must contain a listing of each slave machine’s name. These slave machines must be accessible on the network where mental ray for Maya (the master machine) is installed.
For mental ray for Maya masters going to mental ray standalone slaves, you do not need to specify the port if you are using the default port (31310).
For mental ray for Maya Satellite masters, you must add the port number by typing “:<port number>” after the hostname in the maya.rayhosts file. The port number set on mental ray for Maya Satellite slave machines is 7416. For example:
pc-host1:7416 pc-host2:7416
If you are using a non-default port, you can specify it here as well:
lnx-host2:7555
You can use # to comment hosts out so they won’t be used; for example:
# pc-slave4:7416
You can use IP addresses as well as machine names.
The port on which the master issues requests is set in the maya.rayhosts file or defaults to 31310 (the mental ray standalone port).
The port number on the slave and the port number on the master must match for rendering to take place.
Put the maya.rayhosts file in one of the following directories. (They are searched in order and the first maya.rayhosts file that is found is used.)
Windows
Copy the maya.rayhosts file from \Program Files\Autodesk\mentalrayForMaya201x to %USERPROFILE%\Documents\maya\201x\en_US\prefs.
\Documents and Settings\<username>\My Documents\maya\201x\en_US\prefs
\Users\<username>\Documents\maya\201x\en_US\prefs
Mac OS X
Linux (64-bit)
To verify which hosts file is being read
// Info: (mental ray) : loading startup file C:/Program Files/Autodesk/Maya201x/mentalray/maya.rayrc
// mental ray for Maya: using rayhosts file C:/Documents and Settings/user1/My Documents/maya/maya.rayhosts
Additionally, error messages from mental ray for Maya are printed to the Maya Output Window.
To change the set of slaves being used for mental ray for Maya renders