View Full Version : Batch rending multiple scenes?
Mananetwork 11-02-2003, 10:52 AM I tried searching batch renders or command renders before posting this, but I had no luck so here is my question.
I have a scene and I need to break them down into passes and different camera angles. Now I don't want to batch render a bunch of frames come back and switch cameras and render a couple more frames out of that. So I decided to make scene files of all the camera angles/passes and so forth. I heard something about a .bat file that can render .mb files one after the other. How do you setup a file like that? I need it to render one scene after the other.
| |
Doogie
11-02-2003, 04:44 PM
bat files are "batch" files. It's just a text file with a list of DOS commands. (change the .txt to .bat)
so, for example:
Render scene1.mb
Render scene2.mb
Render scene3.mb
that simple text will render all three of your scenes just by running the bat file.
note: Ctrl-C will exit the bat file, if needed.
Google will show you more about bat files (theres other cool stuff like pause or echo as well as flow control stuff). Or Render -h (or help docs) will show you flags for the Render command line.
Mananetwork
11-02-2003, 10:43 PM
Alright so I made a .bat file and put it into my scene dir. I put in what you put:
Render scene_name.mb
Render scene_name2.mb
When i went into cmd and executed it it said:
'Render' is not recognised as an internal or external command, operable program or batch file.
lazzhar
11-02-2003, 11:31 PM
You should add the Aliaswaveront folders in the envirement variables so you.
If so, just select your scenes and right click then select render, it would start rendering every scene selected.
Mananetwork
11-02-2003, 11:33 PM
sorry lazzhar, I didn't understand that
Doogie
11-03-2003, 12:32 AM
Well... back when you installed Maya it asked "would you like me to set environment variables?" What that would have done is you could type stuff like "fcheck" "maya" or "Render" from any directory, and it would launch the proper app. Now, you have 2 choices... you can either type the entire path everytime (C:\Program Files\AliasWavefront\Maya5.0\bin\Render.exe) or set up the environment variables.
To access environment variables in WinXP, right-click on My Computer and select properties. From there, click on the Advanced tab. At the bottom of the window there should be a button saying "environment variables"
make a new System Variable. Mine, for example is
Variable Name: Path
Variable Value: C:\Program Files\AliasWavefront\Maya5.0\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
I dunno if you have to restart or not..
-Paul
PS: lazzhar was saying if you right-click on your scenefile, you can click render from there. This, of course, is only avaliable if you did a proper install.
Mananetwork
11-03-2003, 03:20 AM
Tried that, but still not rendering.
Can I also plug that same expression into my C:\Documents and Settings\USE_NAME\My Documents\maya\5.0\Maya.env ?
Doogie
11-03-2003, 04:19 AM
hmm... It wouldnt be the env, because Maya doesnt really load.
Methinks (windows) environment veriables are your problem.... did you restart? at the Console, try typing echo %path%. Or even try:
%path%/Render.exe scenefile01.mb
%path%/Render.exe scenefile02.mb
%path%/Render.exe scenefile03.mb
(if this doesnt work... hopefully someone else has a better answer)
At least you know how to author a bat file though =P
Mananetwork
11-03-2003, 04:56 AM
Doesn't seem to work :S
This time it gives me an error of 'C:/Program' is not a va..
Doogie
11-03-2003, 05:13 AM
haha... thats because of the space in the path. If you were to put it in quotes (like you would usually do for this) it would take it as literal and not a variable.
You got any friends that are good with configuring and setting up Windows (or a forum)?
I'm out of ideas unless I can sit down infront of the computer and just randomly play with things.
Mananetwork
11-03-2003, 05:22 AM
So I put quotations in and it started rendering. Once it got to the end of the scenes I set it to render it started rendering the set project I had left maya :S
Doogie
11-03-2003, 05:47 AM
Your computer is possessed by the devil
Mananetwork
11-03-2003, 05:52 AM
Do you by any chance might be an exorcist? LOL
Well thanks for your help. I might reinstall maya sometime soon and check what picking a variable means
WhiteRabbitObj
11-03-2003, 06:32 AM
Sorry to be OT here, but does anyone know if there is a script on the net anywhere to set up render batches? It seems like it would be an easy thing to write and it could just output a .bat for you. Definitely would be handy if anyone knows of something. Thanks.
Mananetwork
11-03-2003, 06:35 AM
Try highend3d.com
CGTalk Moderation
01-16-2006, 02:00 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.
vBulletin v3.0.5, Copyright ©2000-2009, Jelsoft Enterprises Ltd.