Creating the node structure – Apple Shake 4 User Manual
Page 908

908
Chapter 30
Installing and Creating Macros
Creating the Node Structure
First, create the node structure for the function (what you want to occur in the node).
This can be very simple or very complex. To help illustrate macro building, the
following example creates a function that randomly scales, pans, and rotates your
image, similar to CameraShake, but with more moving parameters.
Important:
The QuickPaint, ColorCorrect, HueCurves, and Lookup nodes should not be
used inside of macros.
To create the node structure:
1
Click the Image Tool tab, then click the Text command.
The Text node is added to the Node View.
2
Click the Transform Tool tab, then add a Move2D node.
3
Enter the following parameters:
In these examples, the turbulence function generates continual noise between 0 and 1
(see Chapter 31, “
,” on page 935). Since you do not want all
fluctuations to have the same pattern, offset the seed each time you call the function
(time, time+100, time+200, time+300). Then, simple math is used to get the values in an
appropriate range. For example, in angle, .5 is subtracted to adjust the value to a range
of -.5 to .5. The result is then multiplied by 10, and yields a range between -5 and 5
degrees of rotation.
4
Drag in the playhead in the Time Bar to test the animation.
Parameter
Value
xPan
(turbulence(time,2)-.5)*20
yPan
(turbulence(time+100,2)-.5)*20
angle
(turbulence(time+200,2)-.5)*10
xScale
turbulence(time+300,2)/2+.75