Installation

 

- Copy the MI file to the `aw/maya/mentalray/include` directory.
- Copy the DLL file to the ` aw/maya/mentalray /lib` directory.
- Copy the AEReflectionUtilityTemplate.mel file to a maya script directory.
(The list of the current script directories can be queried using the following mel command: getenv "MAYA_SCRIPT_PATH")
- Copy the icon file to a maya icon directory.
(The list of the current icon directories can be queried using the following mel command: getenv "XBMLANGPATH")

- Add the following lines after similar declarations in the maya.rayrc file:
(The rayrc file is in the Alias/Maya/mentalray directory.

link "{MAYABASE}/lib/ReflectionUtility.{DSO}"

mi "{MAYABASE}/include/ReflectionUtility.mi"

These lines initialize the shader for Mental Ray. If they do not exist than the shader appears only in Maya but not in Mental Ray,
and it gives error messages in the output window like these:
API 0.0 error 301031: call to undeclared function "ReflectionUtility"
API 0.0 error 301036: undefined shader "ReflectionUtility1"


If you have not yet installed any other Mental Ray shaders before, than the rayrc file should look like this after editing.

registry "{MRMAYA_START}"
link "{MAYABASE}/lib/base.{DSO}"
link "{MAYABASE}/lib/physics.{DSO}"
link "{MAYABASE}/lib/mayabase.{DSO}"
link "{MAYABASE}/lib/contour.{DSO}"
link "{MAYABASE}/lib/ReflectionUtility.{DSO}"
mi "{MAYABASE}/include/mayabase.mi"
mi "{MAYABASE}/include/base.mi"
mi "{MAYABASE}/include/physics.mi"
mi "{MAYABASE}/include/contour.mi"
mi "{MAYABASE}/include/ReflectionUtility.mi"
echo "mental ray for Maya - startup done"
end registry