Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Take a look at this tutorial - https://youtu.be/5WJmrYMifW8
Copy link to clipboard
Copied
Thank you, Roland. I will check this out.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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 -
---------------------------------------------
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, ",");
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thank's, Rick. I'll explore this option as well.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more