I have solved my problem... not really... I just switched from Windows to Mac and ran the same script and it worked. Not sure what the difference is but it worked.
NextDesign thank you so much for this helpful script! :) |
Thanks a lot... Just what I was looking for! Works perfect!
|
thank you so much ND its working realy good but when i start render i can't stop it :giggle: any way thanks again
|
Can you post a scene please, i'm intreagued by what's causing this.
|
help
Hi I know this thread has recently become inactive. But I'm calling out for some help. Hopefully someone will read this and help a very lost person out :(
So here's the situation: I am trying to rerender my turntable of my toilet model. Why "rerender"? Because the last time I managed to batch render out the turntable with all it's textures in mental ray- no problems at all. Now, what I am trying to do is rerender a wireframe version of my model using toon lining and a white lambert shade plastered over - using Maya Software. Like Lokjutus the render view looks perfectly fine. But when it comes to the batch render everything just goes wrong. I tried using the hack created by NextDesign (both versions) but an error message appeared - Error: Object not found: renderView Basically there are two problems. The first is that I can't batch render and second, I still can't render out my render views using the hack. I am using Maya 2010. Help anyone ? :help: Here are some images to help you all understand what I'm facing - sorry for the horrible modelling :( http://www.flickr.com/photos/26565161@N07/5610063986/ http://www.flickr.com/photos/26565161@N07/5610064048/ |
Please Help - // Error: renderWindowEditor: Object 'renderView' not found. //
Hey there guys, how you doing?
I was wondering if you could help me out with the following error regarding the script for Maya that has been discussed. I am very eager to get this working as my current frame render works considerable faster than Maya batch render which doesn't even load. I am running Maya 2011 x64. In the script editor I have input the following: // Batch rendering workaround - John Mather (NextDesign) string $filename = "ContainmentSHOT1 2"; string $cameraName = "Test:SHOT1"; int $startFrame = 108; int $endFrame = 234; string $directory = (`workspace -q -rd` + "images/"); for ($i = $startFrame; $i <= $endFrame; $i++) { currentTime $i; // Old version // render -x `getAttr defaultResolution.width` -y `getAttr defaultResolution.height` $cameraName; // New version - supports MR and other renderers! renderWindowRender redoPreviousRender renderView; string $concatFilename = $directory + $filename + "." + $i; if (`getApplicationVersionAsFloat` >= 2011) // Thanks to nowayfra on creativecrash for his workaround catch(eval(renderWindowSaveImageCallback ("render view", $concatFilename, `getAttr defaultRenderGlobals.imageFormat`))); else renderWindowSaveImageCallback ("render view", $concatFilename, `getAttr defaultRenderGlobals.imageFormat`); print ("Saved " + $concatFilename + "\n"); } When I input this into the Mel script the following error comes up: // Error: renderWindowEditor: Object 'renderView' not found. // And so I attempted executing it in Python, however only to be greeted with this error message: # Error: SyntaxError: invalid syntax # If anyone could possibly help me out with this then I'd greatly appreciate it. I only have a little of a week left to get all this rendered for my final year at university and Maya batch render isn't playing nice. The script would be a dream come true if anyone could help me get it working. Cheers guys Derek |
Hey guys. I've figured out the problem. Here's the newest version. Also, please note that it renders out of the current camera (Ie. It renders out of the camera that renders when you press the render button [if that makes any sense :)])
Code:
// Batch rendering workaround V3 - John Mather (NextDesign) -John |
Alright! New version! This version now displays a progress bar while rendering, which also allows the user to cancel the rendering by pressing the ESC key. It also now has support for frame padding, of which the number can be easily controlled with the nFramePadLength variable. The last change is that it will also render in any selected image format from the render globals, not just iff!
Hope you guys enjoy! -John Mather Code:
// Batch rendering workaround V4 - John Mather (NextDesign) |
THANK YOU SIR!
wow, thanks a lot for your great script. I had the wiredest error with one of my renders. Whatever I rendered out of batch was a couple of pixels off from where it should be.
Same file, same camera same everything on single frame gives the correct result... No idea why but I'm trying your single frame technique and it works for me. Thanks again :spin::spin: |
Thanks farbtopf, I'm glad you found it useful!
|
Thanks Next Design.
A question: How could I customize this to grab all the settings from a render layer, and render out multiple layers without having to babysit each one? |
Quote:
|
That's exactly it yes. Assuming I have multiple cameras and frame ranges(assigned to different layers) I would like to batch out without having to create a new script for each one.
|
Nice script ND. I like the comments very clear and kudos for giving folks recognition.
Just out of curiosity, why do you have to call "renderWindowSaveImage" in the catch(eval(...)) block in maya 2011 or higher? I am guessing it is because it is in a try block inside maya 2011 and higher and not in earlier versions? |
Quote:
Quote:
Quote:
|
All times are GMT. The time now is 04:01 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018