View Full Version : How can I render multiple scenes sequentially?
dweinin 02-20-2007, 03:48 AM I posted this in the Rendering forum. I haven't gotten much of a response so I thought I might post it here.
I'm looking for some kind of MEL or DOS command that will let me render multiple scenes, one right after the other. I have 8 scenes that I need to render. The globals are all set. I was hoping to just type in something in the DOS prompt and have maya batch renderer set them all up automatically and render all the scenes.
I've tired creating a bot file and placing it in the scene folder. I'm not sure I set it up correctly.
The file just says
render scene1.ma
render scene2.ma
... and so on up to
render scene8.ma
I work my way to the propper directory from the DOS prompt and try to execute a render
render renderme.bot and I just get an error.
|
|
dr.rastaman
02-20-2007, 07:19 AM
You can create a batchfile to do this. Just use notepad or any other text-editor .
Type in:
render -s 1 -e 150 yourScene1.ma (to render from frame 1 to frame 150)
render -s 1 -e 150 yourScene2.ma
...
Then simply save the textfile with extension .bat and doubleclick it.
dweinin
02-20-2007, 04:58 PM
Excellent. Thanks DR. Rastaman!
Skywalkerplanet
08-15-2007, 09:48 PM
Is this the complete mel script? Because I am not savvy with these things but every render queue program has many bugs, so I need to use this method if possible
I wonder, how does the .bat file locate the .ma files? If I type in:
render -s 1 -e 150 Happy.ma
render -s 1 -e 150 Sad.ma
will it automatically locate the "Happy" and "Sad" files? Will it also use the settings I have in the render settings window once it does or do I need to add flags for MR and such? Is this the complete script?
Thanks
Justin
dweinin
08-15-2007, 10:01 PM
Hey Justin-
It's been a long time since I needed to do this. I've since switched to a MAC and am having difficulty remembering this process.
I remember it working though.
I think what you need to do is what Dr. Rastman said. Create a text file with your scene names and use the extension .bat. Put that text file in with your scene files double click it and I think it will simply find them.
I can't really remember though. You may want to email Dr. Rastaman direct. He was a good help when I was going through this a while back.
-Dweinin.
Cartesius
08-16-2007, 08:00 AM
This script (usually) works for me:
For software: render -r sw "full\path\to\your\scenefile.mb"
For mentalray: render -r mr "full\path\to\your\scenefile.mb"
So if I want to render a scene called overLord.mb using mentalray it would look something like this:
render -r mr "C:\Documents and Settings\Admin\My Documents\maya\projects\Fantasy\scenes\overLord.mb"
/Anders
CGTalk Moderation
08-16-2007, 08:00 AM
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-2012, Jelsoft Enterprises Ltd.