How to stop "Please select the
view you want to render" dialog box in Maya
If a camera view loses focus and you try to render,
Maya will ask you "Please select the view you want to render." This gets
really annoying. To make Maya assume you want to render the last view
that was selected, make the following changes. These instructions are for
Maya 6.0.1.
-
Copy the file 'renderwindowpanel.mel'
C:\Program Files\Alias\Maya6.0.1\scripts\others\
to
C:\Documents and Settings\<USERNAME>\My Documents\maya\scripts
-
In the copied
'renderwindowpanel.mel', locate proc 'renderIntoNewWindow'
-
Replace this text...
if ($camera == "") {
confirmDialog
-message "Please select the view you want to
render"
-button
"OK"
-defaultButton "OK";
return;
}
with...
if ($camera == "") {
string $editor = `getRenderWindowPanel`;
$camera=`renderWindowEditor -q -currentCamera
$editor`;
if ($camera == "") {
// never
rendered any panel
confirmDialog
-message "Please select the view you want to render"
-button "OK"
-defaultButton "OK";
return;
}
}
Questions/Comments/Tips?
Email me at
gin@davidlenihan.com/ORIGINAL_davidlenihan.com