![]()
Appendix A: Extra mental ray render settings
![]()
In addition to the render options in the Render Settings window, you can also set the following render settings using MEL commands.
Render Mode
You can set the render mode by using the following MEL command:
setAttr mentalrayGlobals.renderMode <value>;Where value is as follows:
- 0 for a full render
- 1 to render lightmaps
- 2 to render shadow maps
- 3 to render final gather maps
You may choose to render only shadow maps or final gather maps when the shadow and final gather information does not change throughout your scene.
For all renders after your final gather render, set Rebuild to Off or Freeze in the Render Settings: mental ray tab.
For all renders after your shadow map render, set the Rebuild Mode to Reuse Existing Maps in the Render Settings: mental ray tab.
Export Verbosity
You can set the verbosity level for messages from the translation process. Messages equal to or below the selected severity are displayed in the script editor.
Set the verbosity level using the following MEL command:
setAttr mentalrayGlobals.exportVerbosity <value>;Where value is as follows:
- 0 for No Messages
- 1 for Fatal Messages Only
- 2 for Error Messages
- 3 for Warning Messages
- 4 for Info Messages
- 5 for Progress Messages
- 6 for Detailed Messages
Obtaining exact compatibility with the mental ray 3.4 final gather algorithm
Artifacts may appear when you use Maya 8.0/8.5 to render a scene with final gather that was created using Maya version 7.0 or earlier.
Switch back to compatibility with the mental ray 3.4 final gather algorithm using the following command: