Author Topic: MentalRay Rendering Trouble  (Read 1276 times)

0 Members and 1 Guest are viewing this topic.

Offline LaurenB

  • Hero Member
  • *****
  • Posts: 703
  • Animators don't need sleep, we run on batteries!!
    • View Profile
MentalRay Rendering Trouble
« on: October 04, 2011, 10:22:45 PM »
Hi guys, just thought i'de put this out there in case anyone else has trouble with mental ray and this  //Error: setParent: Object 'renderView' not found. is appearing, all you have to do is go into the script editor (window>general editors>script editor and then copy and paste this into the bottom box and then press the play button at the top)
and put this code in;

 $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" ) {
                deleteUI renderWindowPanel1;
                $renderPanel = `scriptedPanel -type "renderWindowPanel" -unParent renderView`;
                scriptedPanel -e -label `interToUI $renderPanel` $renderPanel;
                }
        }
 }
 
 
  
 


Thanks to Jelly and Nick for poviding the code.
:) xoxo
  
« Last Edit: October 13, 2011, 06:34:06 AM by Hages »