ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Countdown timer, again, but differnt...sorry!

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
sam baum
Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:32:01 pm

Hi all

So, there's lots of tutorials out there on building a countdown timer. But, I can't seem to find one that suits my needs.

I need to produce a countdown timer from 90 to zero. No decimal points, just 90, 89, 88 etc etc.

Any ideas?

Thanks yall.

Sam


Return to posts index

Dave LaRonde
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:34:52 pm

You can use a solid as a track matte to conceal a decimal point and everything to the right of it.

Dave LaRonde
Sr. Promotion Producer
KCRG-TV (ABC) Cedar Rapids, IA


Return to posts index

sam baum
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:42:27 pm

Hi Dave

As I need the counter to be 90 to zero and not 1.30 to zero, doesn't this mean a need a differnt approach? I can't get the usual methods to display numbers higher than 60.

Thanks

Sam


Return to posts index


Dave LaRonde
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:45:08 pm

What setting are you using for the numbers effect?

Dave LaRonde
Sr. Promotion Producer
KCRG-TV (ABC) Cedar Rapids, IA


Return to posts index


Kevin Camp
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:52:07 pm

you can do this several ways, but a fairly simple, straight forward way is to create a text layer and add a slider expression control effect to the text layer.

then twirl down the text layer properties to get to the source text property and enable expressions for that property (select it and choose animation>add expression). in the expression field type Math.round( and drag the expression pickwhip to the sider value, then type ); after that. so your expression shoule look similar to this:

Math.round(effect("Slider Control")("Slider"));

now if you key frame the slider value from 90 to 0 you should only get whole numbers.

Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW


Return to posts index

sam baum
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:57:20 pm

Hi Kevin

This is a beautifully simple solution! Thanks!

One other thing, is there a way when using this method that I can have all number have 2 charectors? So that 9 – 0 show like this. 09, 08, 07 etc etc?

Many thanks

S


Return to posts index


Walter Soyka
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 2:56:43 pm

[sam baum] "I need to produce a countdown timer from 90 to zero. No decimal points, just 90, 89, 88 etc etc. "

Assuming you are talking about 90 seconds:

  • Create a text layer in your comp. Add some dummy text and format it to your liking.
  • In the Timeline panel, twirl down the text layer (click the disclosure triangle next to the layer name), then twirl down the Text properties set, revealing the Source Text property.
  • Alt-click the Source Text stopwatch, and enter the following expression:
90-Math.floor(time)


Explaining the expression from right to left:
  • time yields the current comp time in seconds with decimals.
  • Math.floor(time) returns that time value as an integer, ignoring everything after the decimal point.
  • 90-Math.floor(time) subtracts that time value from 90 to create the countdown.


Walter Soyka
Principal & Designer at Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
RenderBreak Blog - What I'm thinking when my workstation's thinking
Creative Cow Forum Host: Live & Stage Events


Return to posts index

sam baum
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 3:03:36 pm

Walter, yet another beautifully simple solution. There truly is many ways to skin a cat!

Same question to you, is there a way when using this method that I can have all number have 2 charectors? So that 9 – 0 show like this. 09, 08, 07 etc etc?

Many thanks

S


Return to posts index


Walter Soyka
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 3:06:35 pm

[sam baum] "Same question to you, is there a way when using this method that I can have all number have 2 charectors? So that 9 – 0 show like this. 09, 08, 07 etc etc?"

Add a test to see if the countdown is less than 10. If it is, add a leading zero:

countdown = 90-Math.floor(time);
if (countdown < 10) {"0" + countdown} else countdown


The same method would work for Kevin's solution, too.

Walter Soyka
Principal & Designer at Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
RenderBreak Blog - What I'm thinking when my workstation's thinking
Creative Cow Forum Host: Live & Stage Events


Return to posts index


sam baum
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 3:07:57 pm

What a Legend! Thanks so much, I must say that I love this forum!

Have a great day everyone!

S


Return to posts index

abie silva
Re: Countdown timer, again, but differnt...sorry!
on Sep 20, 2011 at 3:18:36 pm

I just used this and it worked great for me...

http://www.videocopilot.net/forum/viewtopic.php?f=5&t=10946&start=0


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]