Squash & Stretch Help

Table of Contents

Overview - Working with Squash & Stretch

What is Squash & Stretch?

Squash & Stretch allows you to apply a variety of behaviors to layers in Adobe After Effects. Those behaviors consist of the following components

Behaviors are similar to presets, but in contrast to normal presets, Squash & Stretch adjusts behaviors to your layers automatically. If you want a layer to jump, for example, then it would look bad if a very small and a very large layer would both jump exactly the same amount of pixels. To ensure that the behaviors always look good, Squash & Stretch adjusts them to the layer size, aspect ratio, position, comp size and more.

All behaviors are carefully handcrafted by motion designers. Once they are applied to a layer, behaviors are just keyframes (and audio layers for the sound effects). This means you can modify them in whatever way you like and make them your own.

Squash & Stretch is useful in many different phases of your motion design project. It can be a source of inspiration, a tool for rapid prototyping and can also be used to create the final animations of your project.

Choosing Behaviors

To choose a behavior, open the behavior gallery by clicking on the black preview area or the "Behavior Gallery" button . In the gallery, you can see live previews of all behaviors at once . To choose one, just click on it. Alternatively, you can also choose a behavior directly in the treeview of the Squash & Stretch panel that can be enabled with the treeview toggle icon .

Once you have chosen a behavior, a preview of it is shown in the black preview area. Now you can adjust this behavior to your needs (see Section Modifying Behaviors), choose one of the sound designs for this behavior (see Section Sound Effects) or apply it directly to a layer.

Applying Behaviors

To apply a behavior, just select the layer and click the apply button. To apply the same behavior to several layers at once, just select all of them.

The time at which the behavior is inserted depends on the "Current Time" parameter of Squash & Stretch. Usually, this can be set to either "start of behavior" or "end of behavior" or for transition behaviors to "transition":

Often it is useful to see where a behavior starts and ends in the composition before applying it. If you click on the Set Workarea to Behavior Duration icon, it will set the workarea exactly to the region that will be covered by the behavior. This allows you, for example, to check whether it will overlap with any existing animations of the layer.

Precomposing

Text layers, shape layers and layer that have the "Collapse Transformations" switch enabled need to be precomposed before a behavior can be applied. Squash & Stretch will do this automatically if needed.

You should avoid applying Squash & Stretch directly to layers whose content is much smaller than the actual layer size. If you have, for example, a 1920x1080 pixel image containing just a 300x300 pixel logo and everything else in the image is transparent, then Squash & Stretch will not be able to estimate the size and aspect ratio of the logo correctly and will animate it as if it would be an object of 1920x1080 pixels size. Hence, if you have such images with large transparent regions, make sure to precompose them and crop the precomp to the actual size of the content before applying Squash & Stretch. An easy way to do this is to first draw a rectangular mask around the 300x300 pixels logo and then click on the Precompose & Crop to Content Size icon to create a precomp that contains only the masked region.

Automatic Adjustment of Sourrounding Keyframes

If you apply several behaviors to the same layer, Squash & Stretch will do its best to adjust the existing behaviors as needed when adding a new one. If you, for example have applied already an animate-in behavior and an animate-out behavior to a layer and now decide that in between the two you also want to apply a behavior that lets the layer jump 100 pixels to the left, then it will also move the starting point of the animate-out behavior 100 pixels to the left to ensure that the transitions between the behaviors are still smooth.

When applying a behavior Squash & Stretch will apply these kinds of adjustments to any existing position keyframes if needed, no matter whether they have been generated by Squash & Stretch or whether you have created them manually. Note that only position keyframes will be adjusted, but not scale and rotation, for example. So if you apply a behavior that rotates the layer by 90 degrees, any animations that already exist after this behavior will remain unmodified and won't be rotated by 90 degrees.

You can deactivate the adjustments of sourrounding keyframes by keeping any modifier key (shift or alt or option or ctrl) pressed while applying the behavior. Note that this also won't delete any keyframes that overlap with the behavior.

Modifying Behaviors

Flipping and Rotating Behaviors

With the icons in the toolbar below the preview area you can flip and rotate the currently opened behavior.

Squash & Stretch Parameter

The Squash & Stretch parameter (only labeled "Squash" if the UI is small) controls the layer deformation. This deformation is created with a Bezier Warp effect on the layer. The higher the parameter value is, the more the bzier points move. If you set it to 0%, no Bezier Warp effect is created on the layer.

Note that this parameter has no impact on position, rotation and (potentially non-uniform) scale of the behavior.

Oomph Parameter

The Oomph parameter controls how far the behavior moves. If you apply a jumping behavior to a layer, for example, setting the Oomph to 200% will make the layer jump twice as far. Since the animation will still happen in exactly the same amount of time, it will be much faster and feel like having more energy.

Note that there are certain kinds of movements on which the Oomph parameter has no effect. This is in particular the case for movements created by scaling the layer (like a snail move that first stretches and then unstretches the layer) or by rotating it (like a rolling cube that is effectively rotating around its corners). For those behaviors the Oomph parameter is deactivated.

Sound Effects

Behaviors can include several sound effect variants. If you choose a variant in the SFX dropdown list, you can hear the respective sound variant in sync with the behavior preview.

A SFX variant typically consists of several audio layers, one for each invovled sound. This allows you to control timing and volume for each of them individually or delete inidiviual sounds, for example. When you apply a behavior, all sound files that are part of the selected SFX variant are imported into the project and inserted into the composition.

In the Squash & Stretch Preferences you can customize a lot of details related to the sound effects. You can, for example, choose that the sound effect layers should be shy layers or that the sound effects of a behavior should be grouped into a precomp to keep the main composition tidy. You can also choose in which folder of your Ae project the audio files should be imported and whether a copy of the original audio files should be placed in your project folder.

Custom Modifications

Since Squash & Stretch behaviors are just keyframes, you can modify them in whatever way you like after you applied them. The behaviors are handcrafted by motion designers with the intention to use as few keyframes as possible but as many keyframes as necessary to make them look great. Therefore, Squash & Stretch behaviors are much easier to customize than animations base on expressions or physics simulations that typically have a keyframe on each frame.

Toolbar Functions

The toolbar provides a collection of additional utilities that smplify your animation workflow. Most of them are not related to the currently open behavior and can be considered as independent little helper tools.

Split Text Layers

Splits selected text layer(s) into characters, words or lines. This is useful to animate different parts of a text independently.

Tip: Keep any of shift/alt/ctrl pressed while clicking the icon to suppress the dialog and split the text with the options that you used the last time.

Precompose & Crop to Content Size

If you want to apply behaviors to layers whose content is smaller than the actual layer size (due to masks, for example), I highly recommend to put them into a precomp that is cropped to the size of the content of the layer, since otherwise the behavior will be calculated for a wrong size. Also, text and shape layers need to be precomposed in order to apply behaviors to them (but Squash & Stretch does this automatically if needed).

Stagger Layers

Allows to stagger layers according to their in- or outpoints. The layers will be staggered between the earliest and the latest in/out points that the layers currently have. Hence, make sure to move at least one layer to where the staggering should start and one to where it should end.

Tip: Keep any of shift/alt/ctrl pressed while clicking the icon to suppress the dialog and stagger the layers with the options that you used the last time.

Set Workarea to Behavior Duration

Sets the workarea to the duration of the current behavior. This is helpful to see how much time an animation takes in the timeline before actually applying it.

Preferences

The preferences can be opened via the flyout menu of the Squash & Stretch panel.

Path of Folder Squash & Stretch Bundles

All animations and sounds of Squash & Stretch are stored in the folder "Squash & Stretch Bundles" which is part of the Squash & Stretch download. You can store this folder anywhere on your system. Just enter here the path of this folder such that Squash & Stretch can find and use it.

If you have purchased additional behavior bundles, you need to copy those also to this folder as secribed in the Section Installing Additional Bundles.

Default SFX

The Default SFX setting controls which SFX variant is selected when a new behavior is openened. You can either select no sound variant at all, always select the first one or always select a random one.

Arrangement of SFX Layers

When you use many behaviors in a composition and each of them includes several sound effects, the number of audio layers can become large. Squash & Stretch allows to choose one of the following stragegies to keep everything tidy:

Copy Audio Files to Project Folder

By default, when Squash & Stretch imports a sound effect in your project, it imports the respective file directly from the "Squash & Stretch Bundles" folder. However, if you like to keep all your source files in your project folder, Squash & Stretch can copy the sound files to your project folder before importing them.

If you enable this option, you have to specify a relative path that determines where the copies should be placed relative to your After Effects project (.aep) file. If you leave this relative path empty, the sound files will be placed exactly in the same folder as your .aep file.

Example

Lets assume that your After Effects project is located at

/Volumes/projects/myProject/Ae/project.aep
and you enter as relative path
audio/sounds
then the sound files fill be stored at
/Volumes/projects/myProject/Ae/audio/sounds/
If you instead enter as relative path
../SFX
the sound files will be stored at
/Volumes/projects/myProject/SFX
(since .. means to go one level up in the folder structure)

SFX Folder in Project

This setting controls in which folder of the project panel (not folder of the file system!) the sound effects are imported. Squash & Stretch will create this folder automatically if it does not exist.

Example

If you enter as "SFX Folder in Project"

audio/SFX
Squash & Stretch will import the sound effects into a subfolder "SFX" of a folder "audio".

Create Parent Null

Often it is convienent to parent a layer to a null. By moving or scaling the null you can easily reposition or resize the layer without the need to touch the individual keyframes of the behaviors. Squash & Stretch can create such parent layers automatically for you.

If you enable the creation of parent nulls, you can also choose a name for the null layers. the name may contain the placeholder [layername] which will be replaced by the name of the layer for which the parent is created.

Example

If you enter as "SFX Folder in Project"

audio/SFX
Squash & Stretch will import the sound effects into a subfolder "SFX" of a folder "audio".

Show Tooltips

Allows to enable/disable the help tips in the user interface.

Ask Before Precomping

As described in Section Precomposing, Squash & Stretch sometimes needs to precompose a layer in order to apply a behavior to it. By default, a confirm message is shown before precomposing. If you want to avoid those messages, you can disable them here.

The Setting Ask before mandatory precomping is used when a layer must be precomposed because it is a text layer, a shape layer or has "collapse transformations" enabled. In those cases the behavior cannot be applied without precomping first.

The Setting Ask before optional precomping is used when a layer contains masks. In this case, most likely the layer size is bigger than the acutal visible part of it (which is clipped by the mask), and hence Squash & Stretch wants to precomp the layer and crop the precomp to the mask size. In those cases the precomp is not absolutely necessary although in most cases it will lead to a much better result.If you disable this option, the precomp is always created, if you enable it, a confirm message is shown that allows you to decide whether you want to precompose or not.

Installing Additional Bundles

In addition to the behaviors of the Core Bundle that is included in the Squash & Stretch extension, you can extend your collection with additional bundles that are available at https://aescripts.com/after-effects/animation-libraries/squash-and-stretch/.

To install additional bundles, just move the respective bundle folder inside the folder "Squash & Stretch Bundles". If you don't know where this folder is located, you can look it up in the Squash & Stretch Preferences at Path of Folder Squash & Stretch Bundles.