Setting format defaults, Setting maximum viewer resolution in the interface – Apple Shake 4 User Manual
Page 366
366
Chapter 14
Customizing Shake
framesPerSecond,
fieldRendering
);
DefFormatType(
“Academy”, 1828, 1556, 1,1,24,“24 FPS”
);
Setting the Default Format Whenever Shake Is Launched
Add the following:
script.format = “FormatName”;
Setting Format Defaults
In the startup directory:
script.defaultWidth = 720;
script.defaultHeight = 486;
script.defaultAspect = 1;
script.defaultBytes = 1;
script.format = “Full”;
Using the script.format overrides the other settings—you either set the first four or the
format settings, as shown above.
Assigning Default Width and Height to a Parameter in a Macro
In either startup or ui (typically inside of a macro’s parameter setting):
image MyGenerator(
int width=GetDefaultWidth(),
int height=GetDefaultHeight(),
float aspectRatio=GetDefaultAspect(),
int bytes = GetDefaultBytes()
)
These four commands check the default global settings and return the value at the
time of node creation; they are not dynamically linked. Therefore, if you change the
default parameters, the node’s values do not change.
Setting Maximum Viewer Resolution in the Interface
In the ui directory:
gui.viewer.maxWidth = 4096;
gui.viewer.maxHeight = 4096;
By default, Shake protects the user from test rendering an enormous image by limiting
the resolution of the Viewer to 4K. If the user accidentally puts a Zoom set to 200 on
the composite, it does not try to render an enormous file, but instead only renders the
lower-left corner of the image cropped at 4K. To change this behavior, set a higher or
lower pixel resolution. These assignments have no effect on files written to disk.
Warning:
Setting maxWidth and maxHeight to excessively high values may result in
Shake unexpectedly quitting during certain functions.