Rendering from the command line – Apple Shake 4 User Manual

Page 336

Advertising
background image

336

Chapter 12

Rendering With the FileOut Node

fileFormat
If no extension is given, the output format is .iff. To override this behavior, explicitly set
the output format.

QuickTime Parameters

The following parameters become available from the codecOptions button if the
fileFormat pop-up menu is set to QuickTime.

codec
A list of all available compression codecs installed on that computer.

compressionQuality
The quality of the compression algorithm. A value of 1 is maximum size, maximum
quality. 0 is minimum size, minimum quality.

framesPerSecond
The frames per second for the playback of the QuickTime compression.

audio
Turn this parameter on to write audio out to the QuickTime file.

Rendering From the Command Line

To render a Shake script from the command line, each FileOut node is explicitly
accompanied by a -fo (for -fileout). You can add multiple FileOut nodes along your
command string to output different steps of the command.

For the batch system, you can use the -fileout option, or the abbreviation -fo to write
your image. For example, to copy my_image.cin as a new image file in .iff format, use
the following script:

shake my_image.cin -fo my_image.iff

The interface allows you to view frames anywhere along the node tree using multiple
Viewers. In the script or the command-line mode, however, you may need to explicitly
call intermediate nodes with either -view or -monitor. For example, to show two
Viewers, one image rotated 45 degrees, and the second image rotated and flopped,
use the following script:

shake my_image.rla -rotate 45 -view -flop

If you append a .gz to the end of the file name, Shake further compresses the file.
Shake recognizes the file format and all of its channels when reading or writing one of
these images:

shake uboat.iff -fo uboat.iff.gz

Advertising