Hi there! I'm a first time poster but I could really use some help. I've been having an irritating issue with my render view not displaying images when I use mental ray. I'm using Maya 2013 and the error message goes as follows:
//Error: Cannot find procedure "useRenderRegion."
I had this issue before and I found a MEL script from a thread on CGSociety that fixed it for a while. Here's the script:
$exists=0;
for ($item in getPanel -scriptType "renderWindowPanel") {
if ( $item == "renderView" ) {
print "renderView exists.\n";
$exists=1;
}
}
if ( $exists == 0 ) {
for ($item in getPanel -scriptType "renderWindowPanel") {
//print ( $item + "\n");
if ( $item == "renderWindowPanel1" ) {
//delete it and rename it to something that renderman can use
print "renderWindowPanel1 detected: switching to renderView so renderman can use it...\n";
deleteUI renderWindowPanel1;
$renderPanel = scriptedPanel -type "renderWindowPanel" -unParent renderView;
scriptedPanel -e -label interToUI $renderPanel $renderPanel;
}
}
}
Otherwise everything works fine but as you can imagine this error is very annoying. Hope to hear from you guys soon.
