Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
in maya 2008 ext2, for some reason the final gather points will not show in
the viewport , unless you manually specify it in window -->
rendering editors --> mentalray --> map visualizer ,and every
time you hit the render button, you have to do this, so it is very
tedious.
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.