Apple Shake 4 User Manual

Page 911

Advertising
background image

Chapter 30

Installing and Creating Macros

911

7

Click OK.

The new push-button node appears in the Transform tab.

8

Add the new node to the Node View.

In the RandomMove parameters, only the motionBlur settings are available, and have
automatically collapsed into a subtree (due to the default Shake behavior).

To modify the macro:

1

If you placed your macro in your User Directory, go into your $HOME directory, and
then into the nreal/include/startup subdirectory.

In the startup directory, a new file called RandomMove.h appears.

2

Open the RandomMove.h file in a text editor:

image RandomMove(

image In=0,
float motionBlur=0,
float shutterTiming=0.5,
float shutterOffset=0

)
{

Move2D1 = Move2D(

In,
(turbulence(time,2)-.5)*20,
(turbulence(time+100,2)-.5)*20,
(turbulence(time+200,2)-.5)*10,
1,
turbulence(time+300,2)/2+.75,
xScale,
0, 0,
width/2, height/2,
“default”, xFilter,
“trsx”, 0,
motionBlur,
shutterTiming,
shutterOffset,
0,

);

return Move2D1;

}

Advertising