Wednesday, June 20, 2012

Fix Maya Error: setParent: Object 'renderView' not found.

Fix Maya Error: setParent: Object 'renderView' not found. I started to face this problem in Maya 2012 version, and it happens frequently, however it can be solved easily with one click, all you have to do as follow: 1- open Scrip Editor in Maya 2- Paste the following code: $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; } } } 3- on Script Editor go to File -> Save Script to Shelve, make sure that you have chosen the Render Shelf so that the script is saved there. 4- Name the script "Fix Rendering" for example, then click to run it. you can run the script each time you face this problem by just clicking on the icon created in the shelve Original Link: