08. We can use the same expression to set the X, Y & Z rotation to match the layer we’re aligning to. Copy the equation then Alt/Opt + click on the X Rotation stopwatch and enter the following code (you can copy and paste the text from the file Step 8 on the cover CD): try{ currentVal = effect(“CurrentLayer”)(“Sli der”); Min = Math.floor(currentVal); Max = Min+1; oldRotation = thisComp. layer(“layer”+Min).transform.xRotation newRotation = this_comp. layer(“layer”+Max).transform.xRotation; ease(currentVal, Min, Max, oldRotation, newRotation); } catch(err){} Repeat this for yRotation and zRotation.


09. Select ‘layer2’ and reveal the transform properties. Set the X rotation to 90º and the Z rotation to 120º. Try scrubbing backwards and forwards over the timeline to see the new effect. The camera should now make a sweeping move between the two keyframes for the slider control. Adding additional titles and camera positions is now a straightforward task.


10. Duplicate ‘layer2’ to create ‘layer3’ and give it a new position and rotation. Note that you can’t set the rotation property using the rotate tool – you need to select and alter the X Rotation, Y Rotation or Z Rotation properties under the Transform disclosure triangle.