After Effects: Countdown/Countup Timer Tutorial ⏱ Hours, Minutes and Seconds

  Рет қаралды 52,958

VerticDesigns

VerticDesigns

Күн бұрын

Пікірлер
@VerticDesigns
@VerticDesigns Жыл бұрын
✅ Photoshop ➧ prf.hn/l/20Bd3Lj ---------------------------------------------------- ⌚ *Expression* ▼ ---------------------------------------------------- slider = Math.round(effect("Slider Control")("Slider")) sec = slider%60 x = Math.floor(slider/60) min= x%60 hour = Math.floor(slider/3600) function addZero(n){ if (n
@SabinaMotasem
@SabinaMotasem Жыл бұрын
Thank you! this works great, but I really want to add DAY at the beginning. How do I do that? what would the expression look like? i've spent days trying to figure this out. there are no tutorials to show you how to do it. Please can anyone help?
@rafaelorniablanco8727
@rafaelorniablanco8727 Жыл бұрын
@@SabinaMotasem Same question here lol, did you happen to find the solution by any chance? Thanks 😊
@MarcelLim
@MarcelLim 3 ай бұрын
Hi I used this expression but I keep getting miliseconds instead of seconds at the right side. Not sure what I did wrong
@liamtain
@liamtain 4 ай бұрын
This was the first expression I found that could handle HOURS, thank you.
@m.r.2851
@m.r.2851 Ай бұрын
If you guys wanna ad days like "00:00:00:00 = day:hour:minute:seconde", there's the expression : slider = Math.round(effect("Slider Control")("Slider")); sec = slider % 60; x = Math.floor(slider / 60); min = x % 60; hour = Math.floor(x / 60) % 24; days = Math.floor(slider / 86400); // 86400 seconds in a day function addZero(n) { if (n < 10) return "0" + n; else return n; } addZero(days) + ":" + addZero(hour) + ":" + addZero(min) + ":" + addZero(sec);
@JayPurcellOnline
@JayPurcellOnline Жыл бұрын
Thanks, this was really useful!. However one question... how could I update the code/expression so that I can have a timer that is minutes, seconds and "frames". Pretty much like an old-school video timecode?
@paolaglzi
@paolaglzi Жыл бұрын
How can I add Milliseconds to this same expression? Anybody???? been trying for hours and I cant figure it out
@luchiya_darkness
@luchiya_darkness 8 ай бұрын
Try this: slider = Math.floor(effect("Slider Control")("Slider") * 1000) msec = slider % 1000 sec = Math.floor(slider / 1000) % 60 minute = Math.floor(slider / (1000 * 60)) % 60 hour = Math.floor(slider / (1000 * 60 * 60)) function addZero(n){ if (n < 10) return "0" + n else return n } addZero(hour) + ":" + addZero(minute) + ":" + addZero(sec) + ":" + addZero(msec) But always remember, that mlsec counts from 0 to 1000. This code first converts the slider to milliseconds and then calculates the number of hours, minutes, seconds, and milliseconds
@OREO_324
@OREO_324 5 ай бұрын
@@luchiya_darkness thank you😭😭😭😭😭
@mrbproductions
@mrbproductions 3 ай бұрын
@@luchiya_darkness fantastic thanks. Do you know how to get it to display just 2 characters of milliseconds not 3?
@ThallesNozzen
@ThallesNozzen 3 ай бұрын
Pra quem usa o After em português: slider = Math.round(effect("Controle deslizante")("Controle deslizante")) sec = slider%60 x = Math.floor(slider/60) min= x%60 hour = Math.floor(slider/3600) function addZero(n){ if (n
@cristiancamilomonroyibanez4072
@cristiancamilomonroyibanez4072 5 ай бұрын
Expresión en Español: slider = Math.round(effect("Control del deslizador")("Deslizador")); segundos = slider%60 x = Math.floor(slider/60) minutos = x%60 horas = Math.floor(slider/3600) function agregarCero(n) { if (n < 10) return "0" + n; else return n; } agregarCero(horas) + ":" +agregarCero(minutos) + ":" + agregarCero(segundos);
@elmermejia1477
@elmermejia1477 4 ай бұрын
amazinggggggggggggggggggggggggg
@elmermejia1477
@elmermejia1477 4 ай бұрын
thanksssssssssssssssssssssss
@readingtapes
@readingtapes 3 ай бұрын
Te adoro hermano
@lowhp_comic
@lowhp_comic Жыл бұрын
Is there a way of keeping the characters in place? Like having each number value remain stationary in position instead of moving left and right a bit when the other numbers change too?
@VerticDesigns
@VerticDesigns Жыл бұрын
It's awkward because the different numbers makes it move so if you don't align it, the timer will just move to the right slightly for more space. I guess one way would be to just give them plenty of space with spacing option or use a simple font like DS-Digital where they should stay fixed
@VerticDesigns
@VerticDesigns Жыл бұрын
Or just manually set the position
@kyle-js2gz
@kyle-js2gz 5 ай бұрын
@@VerticDesigns how do you do that
@VerticDesigns
@VerticDesigns 5 ай бұрын
@@kyle-js2gz manual or auto positioning?
@steveneville4021
@steveneville4021 4 ай бұрын
Hi, great tutorial and thank you for the generous share of the expression. When I use this on a 10sec timeline and put a 10 second difference between keyframes, I expected the seconds to change every second but it's not happening that way, it seems to be every 15 frames.
@utlaxis
@utlaxis 11 ай бұрын
Thanks a lot Vertic! One question, Do you have an idea of what to do if I have After Effect in Spanish? it seems it has some issues linking with the same functions since the effect I have use is called "Control del deslizador" in the Spanish version... I tried to change names unsuccessfully so far, it says the "Slider Control" does not exist or it might have another name, any ideas? Thanks a Lot!
@FlamePhantomer
@FlamePhantomer 6 ай бұрын
rename it to Slider Control by right clicking
@cristiancamilomonroyibanez4072
@cristiancamilomonroyibanez4072 5 ай бұрын
slider = Math.round(effect("Control del deslizador")("Deslizador")); segundos = slider%60 x = Math.floor(slider/60) minutos = x%60 horas = Math.floor(slider/3600) function agregarCero(n) { if (n < 10) return "0" + n; else return n; } agregarCero(horas) + ":" +agregarCero(minutos) + ":" + agregarCero(segundos);
@aisluglander
@aisluglander 11 ай бұрын
Thanks man
@민철기-u3v
@민철기-u3v Жыл бұрын
I have a question. Is there a way to make it count in minutes, seconds, and 24fps??
@f1xzor
@f1xzor 7 ай бұрын
Very useful and helpful! I made a whatsapp mockup of a voice message, needed a countup timer. Cheers!
@quickathletes
@quickathletes 7 ай бұрын
for those with errors: pay attention to the language of your after effects program, its only "Slider" in englisch
@johnfoxfootball
@johnfoxfootball 20 күн бұрын
Can do you this as a football timer/ ie a timer that is 5400 seconds long?
@johnfoxfootball
@johnfoxfootball 20 күн бұрын
so instead of the timer going to 1hr and 2mins for example, it will go to 62 mins?
@VerticDesigns
@VerticDesigns 20 күн бұрын
@@johnfoxfootball yes you can, I've done a separate tutorial on minutes only
@VerticDesigns
@VerticDesigns 20 күн бұрын
@@johnfoxfootball the expression is similar but slightly different
@johnfoxfootball
@johnfoxfootball 20 күн бұрын
@@VerticDesigns can you link please?
@VerticDesigns
@VerticDesigns 19 күн бұрын
@johnfoxfootball kzbin.info/www/bejne/kGK4hqCdYqitp9Usi=LXpYZxY9a_awp3OW
@greenery0614
@greenery0614 6 ай бұрын
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@stevekongliew8305
@stevekongliew8305 Жыл бұрын
Thanks mate. Greatly appreciated for this tutorial. However, there seems to be some sort of an error as it reads. - Sec = Slider Error message. Please help!
@jorgefpujadas
@jorgefpujadas 7 ай бұрын
sorry to bother but theres any way to chanche the size of the las 2 digits, sort like eva count down
@ふひとあきら
@ふひとあきら Жыл бұрын
After reviewing the expression in After Effects, it appears that the slider value is being rounded to calculate the time. The phenomenon where it displays 1 when it's only been 1 second might be influenced by the behavior of the Math.round function. The Math.round function rounds a given number to the nearest integer. For instance, Math.round(0.5) results in 1. Due to this behavior, when the slider value is at 0.5 seconds, it might be rounded up to 1 second, causing the display to advance by 1 second prematurely. To address this issue more appropriately, it might be beneficial to consider methods that either avoid rounding and retrieve the value as its integer part or use truncation to obtain the time. slider = Math.floor(effect("Slider Control")("Slider")) sec = slider % 60 x = Math.floor(slider / 60) min = x % 60 hour = Math.floor(slider / 3600) function addZero(n){ if (n < 10) return "0" + n else return n } addZero(hour) + ":" + addZero(min) + ":" + addZero(sec)
@marthjel
@marthjel 6 ай бұрын
Got an error with something about "Else" but fixed it with proper places curly brackets! slider = Math.floor(effect("Slider Control")("Slider")) sec = slider % 60 x = Math.floor(slider / 60) min = x % 60 hour = Math.floor(slider / 3600) function addZero(n) {if (n < 10) {return "0" + n} else {return n}}; addZero(hour) + ":" + addZero(min) + ":" + addZero(sec)
@ふひとあきら
@ふひとあきら 5 ай бұрын
@@marthjel Thank you so much for pointing that out and providing the solution! I really appreciate your help in fixing the issue with the rounding in the slider value. Your explanation and the corrected code were very clear and helpful. Thanks again for your support!
@MaramBakry
@MaramBakry 4 ай бұрын
how can I update this to make it days, hours, minutes instead? I guess the %60 and /60 and /3600 would change but cant really do the math, can you help?
@lissetteguzman6260
@lissetteguzman6260 Ай бұрын
Donde está la expresión para copiarla y pegarla?
@WilliamKneeshaw
@WilliamKneeshaw Жыл бұрын
Getting an error on line 1. Error: invalid numerical result (divide by zero?)
@VerticDesigns
@VerticDesigns Жыл бұрын
Did you switch the expression engine?
@nao745ksuha
@nao745ksuha Жыл бұрын
Try this: slider = effect("Slider Control")("Slider"); sec = Math.floor(slider%60); x = Math.floor(slider/60); min = x%60; hour = Math.floor(slider/3600); function addZero(n) { return (n < 10) ? "0" + n : n; } addZero(hour) + ":" + addZero(min) + ":" + addZero(sec)
@Γνωθισαυτον15
@Γνωθισαυτον15 Жыл бұрын
Thx for the suggestions - still have the error divide by zero ... @@nao745ksuha
@idontknowmorenames
@idontknowmorenames 9 ай бұрын
Dear Vertic. I do not see the expression. Kind regards Anton
@collins_channel8643
@collins_channel8643 11 ай бұрын
Still gives me the error message about divide by 0 when changing to legacy. No luck here...anyone else?
@collins_channel8643
@collins_channel8643 11 ай бұрын
It was because I was OPTION Clicking the SLIDER stopwatch and not the TEXT SOURCE stopwatch. Hope this helps someone else
@joshuasoga6061
@joshuasoga6061 7 ай бұрын
@@collins_channel8643 This just helped me...thanks mate!
@nathferatero5086
@nathferatero5086 7 ай бұрын
@@collins_channel8643 THANKYOU FOR THIS. I'VE BEEN FIGURING THIS OUT FOR HOURS. ALSO THANKYOU VERDIC DESIGNS
@unoqueen_
@unoqueen_ 5 ай бұрын
@@collins_channel8643 THANK YOU this was my exact problem
@FinestMax
@FinestMax Жыл бұрын
Thanks
@VerticDesigns
@VerticDesigns Жыл бұрын
No problem
@sanya__black_blog
@sanya__black_blog 7 ай бұрын
tq
@joseazuela7545
@joseazuela7545 8 ай бұрын
I can't see the Expression for this tutorial?
@sarahbeewell
@sarahbeewell Жыл бұрын
what are these alt and home things. say its for pc in the title
@awchicks3841
@awchicks3841 3 ай бұрын
Maybe someone need it in Javascript : slider = Math.round(effect("Slider Control")("Slider")) sec = slider%60 x = Math.floor(slider/60) min= x%60 hour = Math.floor(slider/3600); function addZero(n) { if (n
@VerticDesigns
@VerticDesigns 3 ай бұрын
@@awchicks3841 thank you
@silentoceean
@silentoceean Жыл бұрын
bro where is the expression?
@VerticDesigns
@VerticDesigns Жыл бұрын
Here you go I can't add it in the description slider = Math.round(effect("Slider Control")("Slider")) sec = slider%60 x = Math.floor(slider/60) min= x%60 hour = Math.floor(slider/3600) function addZero(n){ if (n
@stevekongliew8305
@stevekongliew8305 Жыл бұрын
​@@VerticDesigns​There seems to be an error showing on the expressions tab. Please help.
@taddelykuroyuna
@taddelykuroyuna Жыл бұрын
slider = Math.round(effect("Slider Control")("Slider")) sec = slider%60 x = Math.floor(slider/60) min= x%60 hour = Math.floor(slider/3600) function addZero(n){ if (n
@memyself3149
@memyself3149 5 ай бұрын
What is the correct slider, keyframe & composition setup if you need the clock to start at 1hour 30minutes and then countup 7minutes and come to a stop at 1hour 37minutes? I hope somebody can give me some advice because I cannot make such a countup animation work correctly.
@MusicWorld73638
@MusicWorld73638 Жыл бұрын
How to do in Mobile
@storeberryfilm
@storeberryfilm Жыл бұрын
Remote to your PC 🤣
Create a Countdown Timer Effect - After Effects
8:14
Brooker Films
Рет қаралды 98 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Create the Best Timer & Countdown Animations in After Effects
6:01
How To Create A Counting Effect in After Effects
5:13
Motion Array Tutorials
Рет қаралды 223 М.
Countdown Timer Tutorial in Premiere Pro
2:39
Smertimba Graphics
Рет қаралды 13 М.
I made maps that show time instead of space
10:44
Václav Volhejn
Рет қаралды 980 М.
How I Built A LEGO Treadmill That Moves In EVERY Direction
18:06
Banana Gear Studios
Рет қаралды 942 М.
Animating Numbers Counting Up In After Effects | Beginner Tutorial
3:09
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
Configurable Timers - After Effects Tutorial
9:40
Holmes Motion
Рет қаралды 41 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН