Apple Shake 4 User Manual
Page 388
388
Chapter 14
Customizing Shake
float xScale = 1,
float yScale = 1,
float xCenter = width/2,
float yCenter = height/2
This gives you the border and center controls to change the scale center. You can grab
a corner to scale X and Y, or an edge to scale X or Y.
CornerPin Controls
In the startup macro file:
float x0 = 0,
float y0 = 0,
float x1 = width,
float y1 = 0,
float x2 = width,
float y2 = height,
float x3 = 0,
float y3 = height
In the ui file:
nuiPushControlGroup(“Func.Corner Controls”);
nuiGroupControl(“Func.x0”);
nuiGroupControl(“Func.y0”);
nuiGroupControl(“Func.x1”);
nuiGroupControl(“Func.y1”);
nuiGroupControl(“Func.x2”);
nuiGroupControl(“Func.y2”);
nuiGroupControl(“Func.x3”);
nuiGroupControl(“Func.y3”);
nuiPopControlGroup();
Grab any corner or the crosshairs in the middle to adjust the position of your image.
The grouping code for the ui file is included, so you do not have to look at all eight
parameters in your list.
- Numbers '09 (254 pages)
- Keynote '09 (247 pages)
- Pages '09 (279 pages)
- Boot Camp Mac OS X v10.6 Snow Leopard (18 pages)
- Boot Camp Mac OS X v10.6 Snow Leopard (19 pages)
- iWork '09 (372 pages)
- Mac OS X v10.6 Snow Leopard (7 pages)
- GarageBand '08 (102 pages)
- iDVD '08 (35 pages)
- GarageBand '09 (122 pages)
- iWeb (37 pages)
- iMovie '08 (50 pages)
- Boot Camp (Mac OS X v10.5 Leopard) (25 pages)
- Boot Camp (Mac OS X v10.5 Leopard) (27 pages)
- Mac OS X v10.5 Leopard (16 pages)
- Mac OS X (622 pages)
- Mac OS X Server (Version 10.6 Snow Leopard) (197 pages)
- Mac OS (42 pages)
- Mac OS X Server (Upgrading and Migrating For Version 10.4 or Later) (97 pages)
- iMovie HD (83 pages)
- iMovie HD (47 pages)
- MAC OS 7.6.1 (4 pages)
- Mac OS X Server (Extending Your Wiki Server For Version 10.5 Leopard) (45 pages)
- Mac OS X Server Ver 10.4 (35 pages)
- Mac OS X Server v10.6 (76 pages)
- Mac OS X Server v10.6 (97 pages)
- Macintosh Japanese Language Kit (30 pages)
- Xserve (Early 2008) DIY Procedure for Hard Drive (3 pages)
- Xserve (8 pages)
- Xserve (60 pages)
- GarageBand 3 (98 pages)
- Remote Desktop 3.1 (191 pages)
- Motion 5.1.1 (1090 pages)
- Workgroup Server 8150/110 (144 pages)
- Aperture (476 pages)
- Xserve Intel (Late 2006) DIY Procedure for Optical Drive Cable (7 pages)
- Xserve Intel (Late 2006) DIY Procedure for Optical Drive Cable (6 pages)
- Network Services Location Manager Network (8 pages)
- Macintosh System 7.5 (65 pages)
- Macintosh System 7.5 (126 pages)
- Macintosh System 7.5 (114 pages)
- DVD Studio Pro 4 (656 pages)
- Keynote '08 (204 pages)
- Xsan 2 (Second Edition) (11 pages)
- LiveType 2 (157 pages)