-script

Function
This executes a saved Shake script, executing all FileOut commands, and all View and Monitor commands as well. Additionally, if there are no FileOut commands, it will execute the last node in the script. Therefore, you don't have to explicitly add the FileOut in the script to write out an image - just place it in the command line with -fo or -fileout.

Command Line

shake -script script.shk

Examples

This executes every FileOut, View and Monitor command in the script, for the frame range set in the script:

shake -script script.shk

This executes every FileOut in the script, only for frame 10:

shake -script script.shk -t 10

This executes every FileOut in the script, only for frames 1 to 10:

shake -script script.shk -t 1-10

This assumes there are no FileOut commands in the script, and writes the last node as my_image.0001.iff, my_image.0002.iff, etc:

shake -script script.shk -fo my_image.#.iff
shake -script script.shk -fileout my_image.#.iff
See Also

Exec