Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create countdown timer that will count down 365 days as seconds?

Community Beginner ,
Oct 28, 2019 Oct 28, 2019

Hello,

 

I'm in desperate need of creating a countdown timer for a client video that starts at 31,536,000 (365 days in seconds) and counts all the way down to 000,000,000.  

It would be great to be able to animate it with keyframes so that I can have it hit the zero mark when I need it to in the video, so maybe using an expression isn't the way to go?   I have no idea how to do this, so any advice would be GREATLY appreciated.

 

Thank you!

2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 28, 2019 Oct 28, 2019

Take a look at this tutorial - https://youtu.be/5WJmrYMifW8

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2019 Nov 05, 2019

Thank you, Roland.  I will check this out.  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2019 Nov 05, 2019

Perfect!  That's what I was looking for.   Do you know if there's any addition to this expression that would allow you to end on "000,000,000" instead of just "0"?  Other than that, it's perfect.   Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 05, 2019 Nov 05, 2019
LATEST

Use this Expression. Replace the number 13 in the line -

 

numDigits = 13;

 

with the number of digits you actually require.

 

You will use the same Expression Point Control as the previous example. FWIW, I essentially combined the original Expression with the last Expression at this URL - 

https://forums.creativecow.net/docs/forums/post.php?forumid=2&postid=863343&univpostid=863343&pview=...

---------------------------------------------

num = effect("Point Control")(1)[0];
neg = num < 0;
num = Math.abs(num);
numDigits = 13;
numDec = 0;
s = "" + Math.floor(num);
while(s.length < numDigits) s = "0" + s;
if (numDec > 0) s += "." + num.toFixed(numDec).split(".")[1];
if (neg) s = "-" + s;
s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2019 Oct 28, 2019

Dan Ebbert's Universal Timer is probably the easiest way to start. You can pretty easily change Dan's expression to use keyframes or sliders for start and end time as well as start and end value.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2019 Nov 05, 2019

Thank's, Rick.  I'll explore this option as well.   

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines