PDA

View Full Version : Using a .bat file for rendering


H3ro
08-26-2006, 04:15 PM
I have been given a .bat file for using to render my project, but it gives me an error.

The Bat file:

cd\
cd C:\Documents and Settings\Ole Kristian\Mine dokumenter\maya\projects\FXWar - Super powers\scenes\passes_2
render -r mr -log c:\renderLog.txt AO_car
render -r mr -log c:\renderLog.txt AO_ground
render -r mr -log c:\renderLog.txt FG
render -r mr -log c:\renderLog.txt fill_light
render -r mr -log c:\renderLog.txt key_light
render -r mr -log c:\renderLog.txt reflection
render -r mr -log c:\renderLog.txt RO_car
render -r mr -log c:\renderLog.txt shadow
render -r mr -log c:\renderLog.txt specular
render -r mr -log c:\renderLog.txt tires_fill_light
render -r mr -log c:\renderLog.txt car_shadow


This is the errpr I get:


Starting "C:\Programfiler\Alias\Maya7.0\bin\mayabatch.exe"
Error: line 1: File not found.: ./AO_car
Error: Scene was not loaded properly, please check the scene name

Starting "C:\Programfiler\Alias\Maya7.0\bin\mayabatch.exe"




Anyone knows how to solve it?

Thanks

Lorecanth
08-26-2006, 07:08 PM
the correct scene format submission is

render -r mr -proj f:\tatoo f:\tatoo\scenes\wiremesh.mb

its a good idea to set the project in the command flag as well as any other options

dont use the change directory command.

H3ro
08-27-2006, 01:34 AM
OK, still not able to render, here is what i have now:
render -r mr -log c:\renderLog.txt AO_car -proj \Documents and Settings\Ole Kristian\Mine dokumenter\maya\projects\FXWar - Super powers C:\Documents and Settings\Ole Kristian\Mine dokumenter\maya\projects\FXWar - Super powers\scenes\passes_2\AO_car.mb

any ideas?

mindsample
08-27-2006, 12:58 PM
the filename is AO_car.mb or AO_car.ma, not just AO_Car

Undseth
08-27-2006, 04:37 PM
Also, i believe you have to use ""/quotes when typing in a path that has a space in it.
from
C:\Documents and Settings\Ole Kristian\Mine dokumenter
to
"C:\Documents and Settings\Ole Kristian\Mine dokumenter..."

Lorecanth
08-27-2006, 05:51 PM
you only have to use the quotes if you have a space in your file path which H3ro does. so the correct format is.

render -r mr -proj "c:\project" "c:\project\scenes\scene.mb"

and to top it off this is going to now get a hearty rtfm, its all in there.

CGTalk Moderation
08-27-2006, 05:51 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.