Undo level number, Amount of processors to assign to the interface – Apple Shake 4 User Manual

Page 368

Advertising
background image

368

Chapter 14

Customizing Shake

This shows, in seconds, how often the autoSave script is performed. The script is saved
automatically in your User directory as autoSave1.shk, autoSave2.shk, and so on, up to
autoSave5.shk. It then recycles back to 1. If you lose a script because Shake
unexpectedly quits, you can load in the autoSave version.

Four other autosave behaviors can be customized within a .h preference file.

Autosave Directory

In the startup directory:

script.autoSaveDirectory = “//myMachine/myAccount/myDirectory/”;

Setting a directory with this declaration overrides the default behavior of placing
autosave scripts in ~/nreal/autosave/..

Autosave Prefix

In the startup directory:

script.autoSavePrefix = “MySweetScripts”;

Defines text to be prepended to autosave script names. This is blank by default.

Autosave File Count

In the startup directory:

script.autoSaveNumSaves = 20;

Sets the total number of autosave scripts to be saved. Files are discarded on a first in,
first out basis. The default autoSaveNumSaves value is 5.

Undo Level Number

In the ui directory:

gui.numUndoLevels= 100;

This determines how many steps of undo are available. Undo scripts are stored in the
TEMP directory.

Amount of Processors to Assign to the Interface

In the ui directory:

sys.maxThread = nrcGetAvailableProcessors();

This sets the number of processors when using the interface. The
nrcGetAvailableProcessors automatically calculates and assigns all of them. If you only
want to use a limited number of processors, assign that number here.

You can assign the number of processors to be used when batch processing with the
-cpus flag. The default is 1. For example:

shake -exec my_script.shk -cpus 2

Advertising