4 Simple After Effects Expressions to Use in Your Workflow

1) Rebound by inertia

I use this expression all the time. It creates a dynamic "bouncy" bounce at any keyframe value you add it to. This can be rotation, scale, position and even mask outlines.

To use inertial bounce (or any other expression), simply copy it below. In After Effects, hold down the option key and select the stopwatch of any value to which you want to add an expression, and then paste the expression into the text box.

This expression is also affected by the time or distance between keyframes. For example, the closer the keyframes are to each other, the faster the bounce will occur and the larger it will be.




2) Wiggle controller

The wiggle expression is needed to create dynamic animations, such as objects falling or shaking over time.

Standard Wiggle expression:

[pastacode lang="javascript" manual="wiggle(0%2C0)" message="" highlight="" provider="manual"/]


The expression wiggle is quite common, but not many people know how to use it. To control wobble, slide controls must be used. Slider controls are located in the effects panel. Create a null or adjustment layer named "Wiggle_Controller" and add two sliders. Name one of them "X" and the other "Y". These will be the keyframes to control the wobble. **(Updated as one user pointed out that this control is not X and Y, but rather frequency and amplitude. Having X and Y variables can be confusing). Name one variable "FREQ" and the other "AMP" Then you can insert the following code into the value you want to change:

[pastacode lang="javascript" manual="wiggle(thisComp.layer(%22Wiggle_Controller%22).effect(%22FREQ%22)(%22Slider%22)%2CthisComp.layer(%22Wiggle_Controller%22).effect(%22AMP %22)(%22Slider%22))" message="" highlight="" provider="manual"/]

Now, if you animate the "FREQ" and "AMP" values ​​on the "Wiggle_Controller", you can control the wiggle.

3) Loop Out

Loop out is another simple expression that can be used to loop any set of keyframes. It can be very useful for creating looping GIFs. It can also be used to change several parameters.

Loop Out Cycle:

"Repeat the specified segment."

Loop Out Ping Pong:

"Repeats the specified fragment, alternating forward and backward movements."

Loop Out Offset: (I've never used this feature to be honest).

"Repeat the specified segment, but offset each cycle by the difference in the property value at the start and end of the segment, multiplied by the number of cycles of the segment."

Loop Out Continue:

"Does not repeat the specified segment, but continues to animate the property based on speed on the first or last keyframe. For example, if the last keyframe of a layer's Scale property is 100%, then the layer continues to scale from 100% to the Out point rather than looping back directly to the Out point. This type does not accept a keyframes or duration argument."

Copy the expression here:

[pastacode lang="javascript" manual="loop_out(%22cycle%22)%0A%0Aloop_out(%22pingpong%22)%0A%0Aloop_out(%22offset%22)%0A%0Aloop_out(%22continue%22)" message= "" highlight="" provider="manual"/]

4) Source text

This "expression" allows you to link two different text layers. It's very easy to create and has helped me a lot. I used this expression to create a lower text template where I wanted to control multiple compositions with a single text third layer.


by @ZaneStudio.Net

Đăng nhận xét

Mới hơn Cũ hơn