2008
Example: Rendering from a text file:
Command-line rendering gives you the ability to set a series of common
switches that can be quickly re-used for rendering a single job from Start >
Run, or for rendering a group of scenes specified in a BAT file. You can build
your text file using any text editor.
NOTE A TXT file can specify only a single scene to render. For multiple scenes,
use a BAT file.
1 Open your text editor.
2 Enter your list of commands, such as:
-bitmapPath=\\mapServer\maps\myMaps
-cam=myCamera
-width=800
-height=600
-vfb=true
-frames=all
-force2Sided=true
3 Once all the switches are entered, save the files as a TXT file, such as
myrender.txt.
4 To render the scene, open the Windows Start > Run dialog.
5 Enter the following:
“c:\program files\autodesk\3dsmax9\3dsmaxcmd” @c:\myrender.txt
-o=“c:\program files\autodesk\3dsmax9\renderoutput\myImage.tga”
“c:\program files\autodesk\3dsmax9\scenes\myscene.max”
and click OK.
Using a TXT file that contains your favorite settings, in conjunction with
a command line that specifies the output file format and scene of your
choice, gives you the flexibility to re-use the TXT file without having to
edit it each time you want to render. You can create several TXT files
with settings for different stages of scene development, such as
testrender.txt or finalrender.txt.
Example: Rendering from a BAT file:
If you want to render several scenes in a batch process, you can create a BAT
file containing all the scenes and switches needed to get the results you want.
Just like a text file, you can build your BAT file using any text editor. For this
6364 | Chapter 18 Rendering