User Guide

CHAPTER 14
414
Using Motion Math (PB only)
Gravity (gravity.mm and gravity.mov) Applies both a gravitational and a frictional force
to a specified layer.
Layer Audio (layeraud.mm and layeraud.mov) Copies the values of the audio amplitude
of a single layer, multiplies them by a specified scale factor, and then creates keyframes for
the specified property using the new values.
Point At (pointat.mm and pointat.mov) Creates rotation keyframes for one layer, keeping
the top of its y-axis pointing at the anchor point of the other layer. Both layers can be
moving.
Relative Corner to Absolute Corner (cornpin.mm and cornpin.mov) Bases the motion
path of the layer on the position of the corner-pin keyframes instead of on the anchor
point. In other words, this script makes the motion paths of the corner pins relative to the
composition.
Scale All Layers (scaleall.mm and scaleall.mov) Scales both the size and position of all
selected layers. Use this script to resize all layers in a composition by the same amount.
Scale Layers by Comp Size (scaleby.mm and scaleby.mov) Scales layers in a composition
to new sizes and positions based on new composition dimensions. Use this script to resize
layers proportionally after changing the dimensions of a composition.
Span (span.mm and span.mov) Attaches each end of a third layer to the anchor point of
the two moving layers, creating position, rotation, and scale keyframes for the third layer,
as necessary.
Spring (spring.mm and spring.mov) Simulates the motion of one object dragging another
with a spring attached between them. This script creates position keyframes for only one
of the two layers.
Running and editing existing scripts
The following procedure outlines the overall process for loading and running a script.
Note, however, that each of the prewritten scripts varies slightly in its application. Editing
existing scripts makes it easy to create unique effects for your composition. After editing
an existing script, make sure that you save the script to a different name so the original
script stays intact.
UG.book Page 414 Wednesday, February 21, 2001 12:05 PM