Countdown Expression After Effects



Countdown in After Effects fundamental. Simple theory and practice

Countdown in After Effects fundamental with simple theory and practices. After reading this article you will be more than capable to write your own simple countdown expressions.

Elegant Particles Countdown in After Effects Posted in Particles Tutorials After Effects by Noble Kreative on December 26, 2018 Learn how to create a countdown made of particles using Stardust in After Effects by Noble Kreative. An expression (as opposed to an Expression Control) is a simple code expression that tells After Effects how to calculate the value for this parameter. But you don’t need worry about that now! All you have to do is to click and drag the pickwhip icon from the effect onto the value of your Expression Control. Top 10 After Effects Expressions for Amazing Motion Design. In this quick and simple tutorial, I'll be sharing my top 10 countdown for the most used expressions in After Effect, they will save you so much time. I did a search in the expressions forum and found this countdown timer. Just create a comp 15 minute long. Press “cntl+alt+shift+T” to create a text layer. Copy the entire expression written below. Twirl open the text and “alt + click” the source text stop watch to enable expressions, then paste expression below into the box.

Countdown Expression After Effects

A countdown is an act of counting numerals in reverse order to zero. In other words, is the number of seconds, minutes, or just frames that remain before something. Although, despite the theory, we can use it vice versa. Instead of going down, we can go up.

The way to create a countdown in After Effects is through simple expressions. Let’s see how we can create some variations of that.

We need two things in order to dive in and create all the variations of our countdown concepts.

After
  • composition
  • text layer

Note: When you create the text layer, make sure you don’t write anything. Just leave it as it is. Also, set the frame rate for the new composition at 30 FPS.

One last thing. You could also use slider control in null object to control a countdown. Basically, you hook up the slider control to drive the countdown and then you just animate the slider control. You can find out more on How to make a simple count number.

Content of this article:

  • The most basic countdown concept
  • Countdown from specific number
  • Started from a specific number and going up
  • Countdown at a different speed
  • Countdown by ten
  • Counting with decimal points

The most basic countdown concept:

After

The most basic concept of countdown would be to just countdown negatively to infinity, right. Well at least as long as you have set up your timeline in After Effects. In my case, I have set up my timeline to 5 seconds. So any countdown will be happening in that time range, and repeat itself over and over again.

Let’s try this one.

Expand your text layer until you see the source text attribute. Alt + left click on the stop-watch icon to go into expression mode. Type: -time in the expression section. Play the animation.

Expression

As you can see, even though our animation is counting down from 0 to -2, something straight happening. There are decimals points. The way to fix it is through a function you have to add in the expression code. The function is Math.floor. So our new expression line of code will be:

Replace the expression line in After Effects for your text layer and once again play the animation.

Now the animation plays as we expected, right!

Countdown Expression After Effects

Note: For reverse effect, to go up, just remove the minus symbol. So, your expression code can be:

Countdown from specific number:

Let’s say for example we want to countdown in After Effects from 3 to zero. Just place the started number in front the minus time.

Started from a specific number and going up:

Let’s say you want to start from 100 and going up. You have to add your number and then adding the “+” symbol following by time:

Countdown at a different speed:

The speed of all of the above countdown variations was depended on the frame rate we set up in the beginner for our new composition, which was 30 FPS. But what if we wanted for our countdown in After Effects to go faster or slower? What if we wanted for example our countdown to be 2 times faster.

It’s quite simple, to be honest.

  • for faster time speed: Add the “*” symbol after the time parameter
  • for slower time speed: Add the “/” speed after the time parameter

It’s make sense, right?

Countdown two times faster:

Lets’ say we want to countdown to infinite two times faster. In three seconds it will be -6.

If we want to countdown to infinite two times slower, so in three seconds it will be -1.5 approximately, we have to replace the “*” symbol with “/”

Countdown from specific number to 0, in specific seconds:

After Effects Timer

Let’s say we want to countdown from 60 to 0 in 3 seconds. Our expression code will be:

Countdown by ten:

In all above variations we countdown one by one. What if we want to countdown by ten! The way to do that is to multiply all the expression line by then number you want (10).

Number Counter After Effects

Our new expression code in After Effects for the our text layer will be:

Likewise, if you want your countdown to be happen by 20, or by 100, etc, your new expression code would be accordingly:

  • Math.floor(-time) *20
  • Math.floor(-time) *100

Countdown with decimal points:

Countdown Expression After Effects

Now to have a countdown with decimal points you can use the previous expression code expect to replace the “*” symbol with “/” this time. So the expression code will be:

Countdown Expression After Effects Project

If you need more zeros in your countdown, just divide with a bigger number.





Comments are closed.