After Effects

How to Add an Expression in After Effects (3 Easy Steps)

2 mins

|

Jun 17, 2025

How to Add an Expression in After Effects (3 Easy Steps)
  1. 1. Select the property you want to control
  2. 2. Enable expressions with a shortcut
  3. 3. Type or paste your expression
  4. Frequently Asked Questions
  5. Spotlight FX - Get free transitions, effects and workflow tools

Expressions in After Effects are a lifesaver when you want something to animate automatically or stay linked to another property. Whether you're syncing movement, creating loops, or just avoiding keyframe overload, expressions make it all way easier.

Let’s walk through how to add one without overcomplicating things.

1. Select the property you want to control

First, pick the layer and property where you want the expression. For example, if you want a bouncing ball effect on position:

  1. Click the layer
  2. Press P for Position (or T for Opacity, R for Rotation, etc.)

This reveals the property so you're ready for the next step.

2. Enable expressions with a shortcut

Now it’s time to activate expressions:

  1. Hold Alt (Windows) or Option (Mac)
  2. Click the stopwatch icon next to the property

You’ll see a little text box appear with some default code like transform.position. That means it's ready for your custom expression.

3. Type or paste your expression

You can now type directly into that box or paste something from your clipboard.

To paste:

  1. Click inside the expression field
  2. Use Ctrl + V (Windows) or Cmd + V (Mac)
  3. Press Enter on your numeric keypad or click outside the box

That’s it! Your expression is live and will update automatically as needed.

Quick example: Looping animation

If you want something like a looping wiggle on position:

  • wiggle(2,30)

This makes it move randomly twice per second with 30 pixels of variation. No keyframes needed.

Frequently Asked Questions

How do you enter an expression in After Effects?

  1. Select your layer and reveal the property.
  2. Hold Alt (Windows) or Option (Mac), then click the stopwatch.
  3. Type your expression into the text field that appears.
  4. Click outside or press Enter on numeric keypad to apply.

How do I paste an expression in After Effects?

After enabling expressions by Alt/Option-clicking the stopwatch:

  1. Copy your expression from any source.
  2. Click inside the text field.
  3. Press Ctrl + V (Windows) or Cmd + V (Mac).
  4. Hit Enter on numeric keypad or click away to confirm.

How do I add a position expression in After Effects?

  1. Select your layer and press P for Position.
  2. Hold Alt (Windows) or Option (Mac), then click the stopwatch.
  3. Type or paste your position-based expression like wiggle(3,50).

How do I add a formula in After Effects?

Expressions are basically formulas written in JavaScript syntax:

  1. Alt/Option-click any stopwatch.
  2. Enter your formula like value + [0,time*100] for upward motion.
  3. Confirm by clicking away or pressing Enter on numeric keypad.
After Effects
How to Relink Files in After Effects
Missing footage in After Effects? This guide shows you how to relink files, whether it's a video clip, PSD, or any other asset. Perfect for fixing offline or moved media quickly.

2 mins

After Effects
New to After Effects? This quick guide explains how the wiggle expression works, where to use it, and what each part means. Perfect for beginners who want to add natural, random motion to their animations without keyframes. Simple examples and real project tips included.
Denis Stefanides

Denis Stefanides

21 mins

After Effects
Learn how to create stunning text animations in After Effects with this beginner friendly step-by-step guide. From presets to advanced techniques, this tutorial covers everything you need to bring your text to life.
Denis Stefanides

Denis Stefanides

7 mins