The Sequence Replicator behavior allows you to animate elements of a replicator in sequence over time. This is the only way to animate elements individually—keyframing the cell parameters or applying other behaviors affects all elements in the pattern uniformly.
Using the Sequence Replicator behavior, you can select and apply replicator cell parameters such as Position, Color, Scale, Rotation, or Opacity, then animate those parameters in a cascading sequence that passes through each element in a replicator pattern.
The starting point for the sequence animation is based on the replicator’s origin or build style. For example, if a spiral replicator’s Origin parameter is set to Center, the sequence animation begins at the center of the spiral and moves outward; if the Origin of a rectangle replicator with a tile fill is set to Upper Left, and the Build Style is set to Across, the sequence begins with the elements in the upper-left corner of the pattern, then moves toward the lower-right corner.
The Sequence Replicator behavior can be applied to the replicator object, or to the cells of the replicator. When applied to each cell of a replicator with multiple cells, animations can be created for each cell.
After you create a Sequence Replicator behavior, you can save the behavior to the Library.
In the Layers list or Timeline, select the replicator, then choose Replicator > Sequence Replicator from the Add Behavior pop-up menu in the toolbar.
In the Library, select the Behaviors category and then the Replicator subcategory. Drag the Sequence Replicator behavior from the stack to the replicator in the Layers list, Canvas, or Timeline.
The Sequence Replicator controls appear in the Behaviors Inspector.
At the top of the Sequence Replicator controls in the Inspector are the Parameter pop-up menus, which are used to add parameters to the behavior, or to remove them after they’ve been added. The added parameters determine which properties are animated.
Underneath the Parameter pop-up menus are the Sequence Control parameters, which determine how added parameters affect onscreen elements. These controls include options for setting the direction of the animation, whether the animation is applied per element or to the whole pattern, the number of times the animation cycles through the pattern, and so on.
Important: Before any sequencing animation can occur, you must add at least one parameter to the behavior in the Inspector and then set a value for that parameter. Until a parameter is added, adjusting the Sequence Controls in the HUD or Inspector has no effect.
In the following example, the Rotation, Opacity, and Scale parameters are added to the Sequence Replicator behavior. The behavior is applied to a replicator with its Shape set to Burst and its Origin set to Center.
With the Sequence Replicator behavior selected, display the Behaviors Inspector.
In the Parameter row, do the following:
Choose Rotation from the Add Parameter pop-up menu.
Choose Opacity from the Add Parameter pop-up menu.
Choose Scale from the Add Parameter pop-up menu.
The added parameters appear above the Add and Remove pop-up menus. No animation occurs until you set a value for the parameters.
Play the project (press the Space bar) to see the effects of the sequencing adjustments as they begin to take effect in the next steps.
Ensure that Record Animation is turned off (no checkmark appears when you choose Mark > Record Animation, or the Record button in the toolbar is turned off).
Set Rotation to the largest (or smallest) value you want the cells to spin in the animation.
In this example, Rotation is set to 160 degrees.
Each element rotates from 0 degrees to 160 degrees over the pattern for the duration of the Sequence Replicator behavior.
Note: If the elements are already rotated (in the Cell Controls), the elements are rotated 160 degrees from their original rotation value.
Each element rotates and pops into place before the next element begins its animation. To soften this effect, increase the Spread value.
Increase the Spread value.
In this example, Spread is set to 12.
In addition to creating a more graceful animation, changing the Spread value can also dramatically change the appearance of the pattern.
Set Opacity to the lowest value you want the elements to become in the animation.
In this example, Opacity is set to 0.
Each element fades from 100% opacity to 0% opacity over the pattern for the duration of the Sequence Replicator behavior.
Note: If the elements contain some transparency, they fade from their original opacity value to 0%.
Increase the Scale value.
In this example, Scale is set to 190%.
The animation begins at the original value for any added parameter, then transforms to the value you specify in the Sequence Replicator parameters. The animation begins at the origin of the pattern (set in the Origin or Build Style parameter of the Replicator Inspector or HUD) and moves to the end of the pattern.
After you create a sequence animation, you can use Sequence Control parameters to change the manner in which the sequence moves through the replicator pattern. The following section continues with the project used in the previous example.
With the Sequence Replicator behavior selected, display the Behaviors Inspector.
Play the project (press the Space bar) to see the effects of the sequencing.
By default, Sequencing is set to To, which specifies that the animation begins at the original value of the cells and moves to the value set in the Sequence Replicator behavior for that parameter. The starting point for the sequence animation is based on the build or origin of the pattern (as defined in the Origin or Build Style parameters in the Replicator Inspector). In the current example, the elements begin completely opaque, at 100% scale, and with 0 degrees of rotation at the origin of the pattern. As the sequence moves toward the end of the pattern, the elements become completely transparent, are scaled to 190%, and are rotated 160 degrees.
In the Sequencing pop-up menu, choose From.
The animation moves from the value set in the Sequence Replicator behavior to the original value of the cells. This is the opposite of the To Sequencing option.
In the Sequencing pop-up menu, choose Through.
The sequence goes through a full animation cycle starting at the original value of the cells, moving to the value set in the Sequence Replicator, then returning to the original value of the cells. This is similar to combining the To and From Sequencing options.
From the Unit Size pop-up menu, choose All.
The sequence animation affects all replicator elements simultaneously. The default is Object, which applies the sequence animation to the elements of the replicator based on the origin of the pattern.
Increase the Loops value to a minimum value of 3.
By default, a sequence animation plays through one time. The value of the Loops parameter defines the number of times the animation repeats over the duration of the replicator object.
From the End Condition pop-up menu, choose Ping Pong.
By default, the End Condition parameter is set to Hold, which completes a sequence animation cycle, then starts the cycle again from the beginning. When set to Ping Pong, the animation cycles forward one time, then cycles backward, then forward, and so on.
Note: The End Condition parameter has no effect for Loop values less than or equal to 1.
Use the following parameters to modify the sequence animation. Except for the Add and Remove Parameter pop-up menus, these parameters also appear in the Sequence Replicator HUD.
Custom allows you to define an area of elements—based on percentage—that are affected by the sequence.
When Custom is chosen from the Unit Size pop-up menu, the Start and End parameters become available.
Note: If the Sequencing pop-up menu is set to Custom, the Custom option in the Unit Size parameter has no affect.
For more information on using the Custom Traversal option, see Using the Sequence Replicator Custom Traversal Option.
When the Traversal parameter in the Sequence Replicator behavior is set to Custom, you can create location keyframes to specify where the effect of the sequence is at a given moment. This allows you to create a sequence animation that travels through a replicator pattern in a unique way. This example shows how to use the Custom Traversal option to scale the elements around a circle replicator shape by creating keyframes.
After the Sequence Replicator behavior is applied to the replicator, add the parameters (in the Behaviors Inspector) you want to include in the sequence.
Set the values for the added parameters.
In this example, the Scale parameter is added and the Scale value set to 200%.
For more information on adding parameters to the Sequence Replicator behavior, see Adding Parameters to the Sequence Replicator Behavior.
From the Traversal pop-up menu, choose Custom.
The Location parameter becomes available. Use the Location slider to keyframe how the sequence moves through the replicator pattern.
Press A to enable keyframe recording.
At the frame where you want to begin the animation, drag the Location slider (or use the adjacent value slider) to set where the sequence begins.
As you drag the slider, the sequence moves through the pattern elements. Values displayed in the Location parameter specify where in the pattern the sequence is (in percentage points)—0 representing the origin of the pattern, and 100% representing the end of the pattern.
In the Inspector, a keyframe is added to the Location parameter.
Go to the next frame where you want to set a keyframe, and move the Location slider.
Repeat step 6 until you create all your keyframes.
Play the project (press the Space bar).
The animation moves through the replicator pattern based on its keyframed locations. In this case, the scale moves erratically back and forth around the circle, rather than in a constant direction.
Like all other layers in Motion, you can add Parameter behaviors to Sequence Replicator parameters to create even more varied, complex effects without keyframing.
In the Layers list or Timeline, select the Sequence Replicator behavior.
In the Inspector, Control-click the parameter you want to add a Parameter behavior to, then choose a behavior from the Add Parameter Behavior submenu menu.
Note: You can only add a Parameter behavior to parameters that include the Animation menu. The Animation menu appears when you place your mouse at the right side of the parameter row.
The Parameter behavior is added and appears above the Sequence Replicator behavior in the Behaviors Inspector. A behavior icon appears in the Animation menu of the Sequence Replicator parameter.
Note: When the Wriggle or Randomize parameter behavior is added to a Sequence Replicator parameter, the Affect Subobjects checkbox becomes available. Select the checkbox if you want each element in the pattern to display a different random behavior.
For more information on using Parameter behaviors, see Parameter Behaviors.