PDA

View Full Version : Can't batch render--command line OR GUI!


SteveSayer
12-10-2010, 01:41 PM
Hello everyone, I hope someone out there can help me.

I have been using Maya for many years, never had a tech problem as intractable as this.

I recently upgraded my system when my motherboard died. So before I was using Maya 2008 on Windows XP (32 bit), and now I'm on Windows 7 (64 bit). I've also installed the Maya 2011 trial. The 2011 trial seems to work fine, but 2008 just refuses to batch render. (And I'm careful to distinguish between the two versions of the renderer--see my long-winded list of different things I've tried, below.)

When I try to start a batch render, either within Maya or from a command line, whether Maya Software or mental ray, it says that it's starting but then just hangs. Within Maya, I get "Rendering with Maya Software..." and then nothing. (Or "...with mental ray" if I choose that, but still no progress.) I can cancel it fine using the 'cancel' command. From the command line, I get "Starting [2008 path]/mayabatch.exe" ...and then nothing.

I notice that one of the four cores on my machine seems to max out processor usage while the rendering hangs; my total system processor usage stays fairly steady around 25%. From the GUI, I can see Maya create a temporary scene file in the appropriate directory, and if I cancel the render, it deletes it when it's done.

I am really at a loss here. I have seen threads about similar problems here and there online, but nothing with a solution that works for me. I'm running as an administrator. I have made sure I take ownership of the project folder and the render output folder. I have set Maya's MAYA_APP_DIR environment variable. I have allowed all Maya-related executables access through the firewall--I have also tried disconnecting from the network, and turning OFF the firewall. Nothing produces even the slightest difference. I have tried rendering from my usual project folder, as well as from the default project folder. I'm using a simple test scene that just contains a single sphere.

From a command prompt, I can run both 'render -?' and 'mayabatch -?' and get the appropriate help messages printed out, so paths are all correct. I've tried using explicit paths just in case... still nothing! I've tried limiting the render to just one processor, with no change.

Maya renders single frames just fine. I've written a quick MEL script that uses the GUI to "batch" render by doing one frame at a time and then saving out the result, but that's a horrible workaround.

In a couple of days, I will uninstall the 2011 trial and, if that doesn't fix the problem, will also try reinstalling 2008. But I hope someone else has some suggestions I could try, too--this issue is truly maddening.

Thanks in advance for anything anyone can offer.

-Steve Sayer

Lolly
12-15-2010, 06:55 AM
From maya8.5 to maya2010 more orderless, I think you should go back to older version.
Autodesk programmers are proficient in Microsoft minesweeper game, not their software.
But mentalray standalone getting better and better, try it.

nookie
12-15-2010, 10:55 AM
can you post the render log (the one in the document folder) to see what's happening?

MikeBracken
10-13-2011, 06:04 PM
Hey Steve. Can you share your gui render script? We have a file here that renders fine in the gui everytime, but always fails on batch.

Regards,
Mike

govindk
10-13-2011, 09:36 PM
I am facing the same problem, god knows whats happening.
Without CMD the Maya scene eats up a lot of RAM and with Maya closed it easy to render.

At least you are getting a temp file created Steve, that isn't happening to mine.
I tried with .bat file with full directory specified after the "Render" command, it still doesn't work.
But some scene do render. Its this particular one, even after importing it fresh on a new scene.

I am using Maya 2011 SP1.

However I have created a new thread

http://forums.cgsociety.org/forumdisplay.php?f=87

SteveSayer
10-14-2011, 02:28 PM
Thanks for the replies, folks.

The issue I've been having is universal; it prevents me from rendering even a simple test scene with a single sphere in it, for example. It must have to do with the installation / configuration of the software; it's not related to scene complexity.

Mike, I don't have the script in front of me, but I believe it looks something like this:

for ($i = 1; $i < 101; $i++)
{
currentTime -e $i;
renderWindowRender redoPreviousRender renderView;
}
This will render frames 1-100 of your animation. Change the limits of the 'for' loop to render a different range.

Note that before doing this, you should set your Render Settings to a format that will include frame numbers ("name.#.ext" for example). Your rendered images will show up in the 'images/tmp' folder. Note that re-rendering the same image will overwrite without prompting, so be careful.

Hope that helps!

-Steve

surreal-reality
10-19-2011, 03:21 PM
If anyone needs a viewport batch render script I wrote one a while ago, download it here (http://www.enviral-design.com/downloads/scripts/Viewport%20Render%20Script/VPR_Render_v%200.9.py). Needed an alternative months ago when I had some troubles with batching fluids.

It has a gui with save directory, frame range, etc. Only prob is Past 2009 the syntax for a few commands changed and it no longer works.

Hope it helps

govindk
10-19-2011, 04:53 PM
so now what is the solution for all these? :sad:
Re-do the entire scene again, all the time and patience send on the fist one will go down the drain?

My two scenes with fluids at 300 RES (the max I can go in my sys with ddr2 4 gig ram), isn't rendering at all... not in Mental ray Batch Rendering or CMD rendering.
I imported and tried all that I had in my knowledge...

Other scenes are rendering though.

CGTalk Moderation
10-19-2011, 04:53 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.