PDA

View Full Version : Render from Command Line



Forgotten
08-27-2006, 12:20 AM
Regarding that video tutorial, I noticed that digital-tutors said that the window would close after the render is complete.

I personally think its nice to have the window open after its finished and so I thought others would like that as well.

I haven't tested it yet, but I'm sure if you set the Translation to "Progress Messages" or something similar, it will display such information on the command line while rendering. This is another reason to review the render is something goes amiss.

To make it remain open after all the renders have taken place, on a new line add the following:


pause

And that's it! Then when you run your batch file, at the end you well see

"Press any key to continue..."

after all of your render progress and info. Then simply press any key to close it.

laxman
08-27-2006, 04:24 PM
Thanks for the tip, that will probably help quite a few people. Could you please copy and paste a copy of you post here:

http://www.digitaltutors.com/digital_tutors/video_details.php?v=746

That way people can see it once they watch the video.

Forgotten
08-27-2006, 08:16 PM
Done and done. Also note that since it is a .bat, it will accept any command that is valid in the command prompt. That includes wait functions, if else, etc. etc.

If you know what you are doing, you can write yourself a useful script. Such as:



RENDER testfile.mb
PAUSE
CLS
ECHO 1. Redo
ECHO 2. Continue
ECHO 3. Quit.
CHOICE /C:123 /N /T:2,5 Please choose a menu option.
IF ERRORLEVEL == 3 GOTO QUIT_MENU
IF ERRORLEVEL == 2 GOTO RUN_CONTINUE
IF ERRORLEVEL == 1 GOTO RUN_REDO
:RUN_REDO
CLS
RENDER testfile.mb
:RUN_CONTINUE
CLS
RENDER testfile_2.mb
:QUIT_MENU
CLS
ECHO Closing...
PAUSE


If anyone cares about batch programming, this manual will prove some help.

http://www.cs.ntu.edu.au/homepages/bea/home/subjects/ith305/ith305.html

Don't ask me because I have forgotten long ago how to write an extensive script.

laxman
08-28-2006, 06:58 PM
Thanks for the info.

papa
08-28-2006, 07:20 PM
mmmmm.... the old days of dos