Apple Shake 4 User Manual

Page 391

Advertising
background image

Chapter 14

Customizing Shake

391

Point Controls

In the startup macro file:

float xCenter = width*.33,
float yCenter = height*.33,
float xPos = width*.66,
float yPos = height*.33,
float myPointX = width/2,
float myPointY = height*.66

In the UI file:

nuiAddPointOsc(“Func.myPoint”);

These three sets of parameters create a crosshairs control. Center and Pos are default
names—the Center pair is also associated with the angle and the scale parameters.
However, the last point is completely arbitrary, as long as it ends in an uppercase X and
Y. In the ui file, you must also declare that these are an XY pair.

Advertising