5

Table Of Contents
When you animate a layer with a behavior and then apply a Simulation behavior, the
Simulation behavior is evaluated before the first behavior (and might have no effect).
For example, if you animate the Rotation parameter of a layer using the Oscillate
(Parameter) behavior and then apply a Rotational Drag (Simulation) behavior to the
layer, the layer oscillates, but is not slowed by the Rotational Drag behavior. Motion is
evaluating the Simulation behavior (Rotational Drag) before the Parameter behavior
(Oscillate), applying the drag to a 0 value. There is no data for the Simulation behavior
to affect.
Note: Although the Spin behavior appears in the Basic Motion category, Spin is treated
as a Simulation behavior in Motions order of operations.
For information on combining keyframes with behaviors, see Combining Behaviors with
Keyframes.
Reordering Behaviors
When you apply multiple behaviors to a single object, the behaviors appear nested
beneath that object in the Timeline and Layers list. All behaviors combine according to
a predetermined order of operations regardless of their order in the Layers list, so
reordering them has no effect on the resulting animations that are created, with a few
exceptions:
The Stop behavior suspends the activity of all behaviors beneath it that affect the same
parameter. The Stop behavior has no effect on behaviors above it in the Layers list.
Parameter behaviors are applied in the order that they are added, from the bottom to
the top in the Layers list, so you need to think about how you are building the operation.
For example, imagine a circle shape with an X Position of 50 in the Canvas. If you apply
a Rate Parameter behavior with a positive Rate value to the X Position of the circle, the
circle will move to the right from its starting X Position of 50. If you then apply a Negate
Parameter behavior to the circles X Position, the circle will start at –50 in the Canvas
and move to the left. The effect you see in the Canvas is the result of each behavior
acting upon the previously applied behavior: an X Position value of 50 is modified by
the Rate behavior (in a positive direction), which is in turn modified by the Negate
behavior, changing the X Position and rate to negative values.
If you swap the order of Rate and Negate in the Layers list, Negate is processed first.
The circles X Position value of 50 is turned into –50. This is then passed as the input
to Rate, which moves the circle in a positive direction. Now the circle begins at the –50
X Position in the Canvas, and moves to the right.
To reorder a behavior
1 Drag the behavior up or down in the list of nested behaviors applied to the same object.
384 Chapter 9 Using Behaviors