• How to fix Maya 2012 Error: setParent: object ‘renderView’ not found


     If we open a maya file with double click , sometimes we face render related problem with command " //Error: setParent: object ‘renderView’ not found"
    We dont know the original fact behind this problem but there are some ways to solve this problem.

    1.
      Open Script Editor and paste the folloing  script in Mel Script Editor. And execute 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" ) {
             deleteUI renderWindowPanel1;
             $renderPanel = `scriptedPanel -type "renderWindowPanel" -unParent renderView`;
             scriptedPanel -e -label `interToUI $renderPanel` $renderPanel;
             }
         }
     }
     
       
    2 .
      When you open the maya file by double clicking then this error happens. You have to open the file from File menu.
     Or set the project file. 

    0 comments:

    Post a Comment

     

    About Me

    My Photo
    Hi i am Prabal love to do Painting, Digital Painting,Animation,Photography

    Add This