Custom stipple patterns in the enhanced node view, Adding custom media formats to the format menu – Apple Shake 4 User Manual
Page 365
Chapter 14
Customizing Shake
365
Creating a Custom Palette
In the ui directory:
nuiSetColor(1,1,0,0);
nuiSetColor(2,1,0.5,0);
nuiSetColor(3,1,1,0);
etc.
This assigns default colors to the palette icons, with the first number as the button
number.
Custom Stipple Patterns in the Enhanced Node View
Different stipple patterns can be set in a .h preference file. Each stipple pattern is
defined by a four-byte hex number that, when converted to binary, provides the
pattern of the line drawn for each bit depth—each 1 corresponds to a dot, and each 0
corresponds to blank space.
For example, 0xFFFFFFFF is the hex equivalent of 1111111111, which creates a solid line.
0xF0F0F0 is the hex equivalent of 1111000011110000, which creates a dashed line.
The default settings are:
gui.nodeView.stipple8Bit = 0x33333333;
gui.nodeView.stipple16Bit = 0x0FFF0FFF;
gui.nodeView.stipple32Bit = 0xFFFFFFFF;
Adding Custom Media Formats to the Format Menu
You can create your own custom entries in the format pop-up menu in the Globals tab
by adding the following declarations to a .h file in the startup directory.
Custom formats take the following form:
DefFormatType(
“string”,
width,
height,
aspectRatio,
viewerAspectRatio,