This is a quick hack , i modified a script comes with maya "mentalrayUpdateMapVisualizer.mel".
location :
D:/Program Files/Autodesk/Maya2008/scripts/others
and added 3 lines.
// a hack by hanjiang 2008-5-21
string $mentalRay=`workspace -rte mentalRay`;
$mapName =`workspace -q -rd`+(size($mentalRay)?$mentalRay:"renderData/mentalRay")+"/finalgMap/"+$mapName;
$mapName = toNativePath($mapName);
why i check if `workspace -rte mentalRay` exists or not? just to make sure the path is valid, in my test, sometimes `workspace -rte mentalRay` returns an empty string ( when you are using maya default project, and the mentalray filed in the Edit Project window is empty ), so ...
edit:
you don't need to overwrite the script in maya2008/scripts/others folder, just put it in your my documents/maya/2008/script or in the folder you specified in MAYA_SCRIPT_PATH in maya.env. It'll automatically override the default one.
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.


