-exec

Function
This executes a saved Shake script, executing all FileOut commands in the script. It disables all View and Monitor commands, only writing files out. If there are no FileOuts in the script, it will return nothing for every single frame. You can continue to add a -fo or -fileout onto the command line to explicitly declare an output image, which will take the last argument in the script as its input argument.

Command Line

shake -exec script.shk

Examples

This executes every FileOut in the script, for the frame range set in the script:

shake -exec script.shk

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

shake -exec script.shk -t 10

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

shake -exec 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 -exec script.shk -fo my_image.#.iff
shake -exec script.shk -fileout my_image.#.iff