Skip to main content
Rameez_Khan
Legend
November 1, 2019
質問

Getting started with After Effects expressions

  • November 1, 2019
  • 返信数 10.
  • 34904 ビュー

Disclaimer: This post isn't an official expressions guide by Adobe. It's meant to help users understand the power of expressions in After Effects. Being an author of this post doesn't mean that I am an expressions guru or think that I know everything. All the content that I have included in this post helped me to understand expressions in a fun way. My idea is to curate content and put it here and I intend to improve the content on this page. If you want to contribute, please share your videos in the comments below. If you would like to work with me 1:1, send me a private message. Thanks!

 

This post is dedicated to users who want to use expressions but don't know where to start. Expressions take the functionality of After Effects to a whole new level. Expressions are mainly used by After Effects power-users and new-comers are really intimidated by using them. 

 

What is an expression?

An expression is a little piece of software—much like a script—that evaluates to a single value for a single layer property at a specific point in time. With expressions, you can create relationships between layer properties and use the keyframes of one property to dynamically animate other layers. For example, you can use the pick whip to link path properties, so a mask can take its path from a brush stroke or a shape layer object. Expressions can save a lot of time by not having you to manually key-frame every animation.

 

What can I create with expressions?

Here is a beautiful example from School of Motion's Joey Korenman to showcase how expressions can be used to animate the hour and minute hands of a clock in a few simple steps.

 

Do I have to remember all the expressions? Not at all!

You don't have to memorize every bit while writing expressions. After Effects displays a drop-down list with a set of suggestions that it pulls from the layer names of the project. Composition names, layer names, footage names, and effect names are all pulled into auto-complete and shown in the correct context. Check out the improvements to the Expression Editor from the Spring 2019 release.

 

How to use the pick whip in expressions

If you don't want to enter entire expressions yourself by manually typing them, you can create an expression with the pick whip or paste it from an example or other property.

This short tutorial will help you understand how to use the Pick Whip while using expressions.

 

Some useful After Effects expressions:

In this tutorial from Ukramedia, Sergei shows how far a simple line of text can take you in After Effects. He talks about some useful expressions like Value, Time, loopIN(), loopOUT(), wiggle() and more. You also get a project file to try these expressions.

 

This After Effects tutorial from School of Motion covers a few fantastic After Effects expressions that you may have never used before.

 

If you want to take a deeper dive:

 

- Show us what you created with your first Expressions project.

- Feel free to share other tutorials or reference material that helped you understand how expressions work.

このトピックへの返信は締め切られました。

返信数 10

Rizatgraphics
Participant
September 6, 2023

That's awesome, Rameez! I also create After Effects tutorials and post them on https://riztagar.com. Your post will be a valuable resource to help me grow my knowledge. Thanks for sharing!

riztagar
Participant
May 29, 2021

is vector mean " represent a point or direction "?

Mathias Moehl
Community Expert
Community Expert
May 30, 2021

in expressions (or programming in general) a vector or array is a value that consists of multiple components.

Like the position (x and y and sometimes also a z component).

A direction given as a single rotation value is not a vector, but a 3d orientation property is a vector, for example.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Inspiring
May 31, 2020

This is great Rameez!

 

I actually built a resources that helps with learning After Effects including expressions and scripting.

 

There is a 'Start Here' section - https://aftereffectsbeginner.com/start-here/ and a main tutorial section which has a expression tag for all of the latest expression tutorials. https://aftereffectsbeginner.com/

 

Thanks

Liam

Rameez_Khan
Rameez_Khan作成者
Legend
June 16, 2020
Inspiring
June 17, 2020

Thanks Rameez!

 

I've linked it in the other thread.

 

Cheers

Liam

Peter A Lund
Inspiring
January 29, 2020

Hi RameezKhan, 

 

I found this: http://www.skachkov.eu/alexander/Expression_Collection.pdf

 

And I think that it´s very helpfull. 

I don´t know why I never found this before, maybe I did not search for the corrects words.

 

With all the time I spend with After Effects, I am thankfull that so many people are helping us

to understand expressions and scripting.

 

And I don´t undertand, why the help inside of AE is so limited on this topic.

 

And maybe someone can post the old adobe university live tutorial for expressions and

scripting.

 

I miss this on the list.

 

have a nice day with expressing yourself.

 

Peter  

 

 

rejoice in the way things are.When you realize there is nothing lacking,the whole world belongs to you.>Be content with what you have;rejoice in the way things are.When you realize there is nothing lacking,the whole world belongs to you.
Rameez_Khan
Rameez_Khan作成者
Legend
February 4, 2020

Thanks for sharing, Peter.

 

Re: And I don´t understand, why the help inside of AE is so limited on this topic.

The content team is actually working on revamping documentation for expressions.

 

Best,

Rameez

Mathias Moehl
Community Expert
Community Expert
December 2, 2019
Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Rameez_Khan
Rameez_Khan作成者
Legend
January 2, 2020

Thanks for sharing, Mathias_Moehl.

Appreciate it!

Mathias Moehl
Community Expert
Community Expert
January 2, 2020

you are welcome 🙂

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
angie_taylor
Legend
November 5, 2019

Thanks for posting this Rameez 🙂 Can I please add my own course on Linkedin Learning which has some free tutorial movies that anyone can watch. If you're a subscriber to Linkedin Learning or Lynda.com you can download and watch the whole course 🙂

Learning After Effects Expressions

https://linkedin-learning.pxf.io/VvNNM

Rameez_Khan
Rameez_Khan作成者
Legend
November 27, 2019

Hi Angie, 

 

Absolutely!  

Thanks for adding the links. 

 

-Rameez

Roland Kahlenberg
Legend
November 5, 2019

MotionScript is the home of Dan Ebberts - the undisputed guru for Expressions in Adobe After Effects; for as long as Expressions have been around.

https://www.motionscript.com/

 

JJ Gifford's site is another first generation, Expressions-centric site. The one issue you have to take note is that his site uses snake-case Expressions which was how Expressions were originally written.

Snake case Expression methods are written like this -
this_Comp

 

while more recent Expression methods are written in camel case, like this -

thisComp

 

So, use JJ Gifford's site because it is excellent - just remember to replace his snake-case Expressions with the more recent camel-case Expressions.
https://helpx.adobe.com/lv/after-effects/using/legacy-and-extend-script-engine.html

http://www.jjgifford.com/expressions/

 

FWIW, Michael Natkin, AFAIK, was mainly the mind and person behind Expressions in AE, at Adobe. 

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Rameez_Khan
Rameez_Khan作成者
Legend
November 25, 2019

Thanks for sharing. I will take a look and include these in the main post. 

I couldn't find Michael Natkin in Adobe's directory. Maybe he used to work at Adobe in the past. 

 

-Rameez

Roland Kahlenberg
Legend
December 10, 2019

That you do not know that Michael Natkin left Adobe a long while ago and that he was known for bringing Expressions into AE is a clear case that you are way over your head and yet you somehow imagined you know more than all the experts that have volunteered their time here. That you left out Dan Ebberts is actually quite laughable. I could go on but my intent is only to ask that you seek the expertise and experience of the volunteers before you exbarrass yourself and the rest of us. I do not want to belong to a group where one or more frivolous, self-centric individual keeps providing falsely/imgined leadership.

Give yourself a break. Neither you nor I and anyONE else here is as good as the collective volunteers. So, the next time you come up with something like this - coming up with an Important Topic for Sharing; have some Common Sense and Decenvy to ask for input from the collective experience and expertise of the volunteers here, for input. I am surprised and dissapointed that you neglected the 200+ cumulative years of experience+knowledge of the volunteers here.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Roland Kahlenberg
Legend
November 5, 2019

Those two School of Motion videos should be removed!!! The one on the hour clock is very poor and a waste of time - too many err ... erms and it's such a simple task! It's almost a joke. There are other much better Expression tutorials that are shorter and cover better ground - like the other tutorials you posted. Is there a reason you put said tutorial up first?

The second School of Motion tutorial has TWO huge mistakes! Firstly, the loopOut offset Expession method is incorrectly explained - He has actually explained the loopOut continue Expression, perfectly! LOLOL.

The second 'error' is with the Expression Method, clamp - he incorrectly stated that a user requires the clamp method for creating templates. This is incorrect since MoGRTs; the EGP has a built in feature for clamping property values. IT's still a good tutorial but I wouldn't share it at an official Adobe site without correct qualifications since there are other tutorials that cover the same topics correctly and if you cannot find something replaceable, then it's best to leave it out, for the moment at least.

I'll post other Expression links that are useful. These will be links that the first and second generation AE users found helpful, then, and are still very much relevant today. And one of the reasons for their relvance; not to take away their absolute brilliance, is because we have people sharing poorly deducted and executed tutorials for AE users. YOU have a lot of expertise at your disposal but yet you choose to pretend you know it all. You're a nice guy but let's not pretend there are others working with you that can offer invaluable support.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Rameez_Khan
Rameez_Khan作成者
Legend
November 25, 2019

Hi Roland, 

 

Thanks for your feedback! 

The School of Motion video about the clock is well-explained in my opinion and a lot of new users love Joey's teaching style. That's why I put it there first. It helps new users understand what can be done using expressions in a fun way! 

 

Again, thanks for pointing out the mistakes in the other tutorial. Can you share links to other video tutorials with the absolutely correct information? I'll be happy to link them to the post. 

 

I don't think I boasted or mentioned that I know it all. I am not pretending anything! As you can see, I've asked the community to share useful tutorials. I think you misunderstood the intention of this post. This post isn't the Holy Grail of expressions by any means, it's rather a basic guide curated for beginners. You're welcome to contribute and I am happy to include your suggestions. 

 

Best,

Rameez

Martin_Ritter
Legend
November 2, 2019

That's a nice collection!

 

I want to add official Adobe AE expression language reference document:

https://helpx.adobe.com/after-effects/using/expression-language-reference.html

 

That's everything you can do with expressions. Bookmark it, read it, read it again.

 

*Martin

Rameez_Khan
Rameez_Khan作成者
Legend
November 2, 2019

Thanks, Martin. 

AE Expressions Language Reference is linked at the end of the post 🙂 

 

-Rameez

Martin_Ritter
Legend
November 2, 2019

Oh! I only looked at the videos...

Community Expert
November 1, 2019

Useful 

Byron.
Rameez_Khan
Rameez_Khan作成者
Legend
November 2, 2019

Thanks, Byron.