- A RenderMan_for_Maya.module file must contain the path to the RenderMan for Maya installation.
- Maya must find the RenderMan_for_Maya.module file in one of the locations that it searches for modules.
- Maya's command line Render command requires rmanRenderer.xml to be found by Maya.
On Windows and OS X, the installer takes care of these, but if for some reason they need to be adjusted, read on.
Examples of the default install location of RenderMan for Maya:
Windows | C:\Program Files\Pixar\RenderManForMaya-22.0 |
OS X | /Applications/Pixar/RenderManForMaya-22.0 |
Linux | /opt/pixar/RenderManForMaya-22.0 |
Examples of the default install location of RenderMan Pro Server:
Windows | C:\Program Files\Pixar\RenderManProServer-22.0 |
OS X | /Applications/Pixar/RenderManProServer-22.0 |
Linux | /opt/pixar/RenderManProServer-22.0 |
RenderMan for Maya respects environment variables called RFMTREE and RMANTREE, which can be used to specify the location of the RenderMan for Maya and RenderMan Pro Server installations. If these variables are not set they are inferred.
These are examples of where the RenderMan_for_Maya_22.0.module file can go so that Maya will find it (adjust versions as necessary):
Windows | C:\Program Files\Common Files\Autodesk Shared\Modules\Maya\ ~/Documents/maya/2018/modules |
OS X | /Applications/Autodesk/maya2018/Maya.app/Contents/modules ~/Library/Preferences/Autodesk/maya/2018/modules |
Linux | /usr/autodesk/maya2018/modules ~/maya/2018/modules |
Alternatively, you can put the module file in a non-standard location and set the MAYA_MODULE_PATH environment variable. Run getenv MAYA_MODULE_PATH in Maya's Script Editor to see the standard locations that Maya checks for modules.
Module Contents
The module file should contain a path to the install location. These are examples of the contents of the file on different platforms (adjust versions as necessary):
Windows | + RenderMan_for_Maya 22.0 C:/Program Files/Pixar/RenderManForMaya-22.0 |
OS X | + RenderMan_for_Maya 22.0 /Applications/Pixar/RenderManForMaya-22.0 DYLD_FALLBACK_LIBRARY_PATH+=/Applications/Autodesk/maya2017/plug-ins/xgen/lib |
Linux | + RenderMan_for_Maya 22.0 /opt/pixar/RenderManForMaya-22.0 |
Note, on OS Xbatchrenders using XGen may require the DYLD_FALLBACK_LIBRARY_PATH to be set, and this can happen via the module file or as an environment variable.
For Maya's Render command to work with RenderMan, you need to copy or symlink $RFMTREE/etc/rmanRenderer.xml into Maya's rendererDesc directory.
e.g.
sudo ln -s /opt/pixar/RenderManForMaya-22.0/etc/rmanRenderer.xml /usr/autodesk/maya2017/bin/rendererDesc/rmanRenderer.xml
Alternatively, you can set the MAYA_RENDER_DESC_PATH environment variable topointatthedirectory where it can find rmanRenderer.xml.