After Effects: Countdown Timer Tutorial (Quick Easy Timer)

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • How to create a countdown or count up timer in Adobe After Effects CC and CS6 using an easy method. Animation timer in After Effects or AE timer is really easy to create and control. This Adobe After Effects Tutorial will show you how to create a countdown or count up timer using a simple and easy expression.
    I'm unable to add the expression due to brackets so here's a notepad download
    Expression: bit.ly/3ZK20i8
    🔔 Stay Updated ➤ bit.ly/1Lr3EXM
    🖥️ My Setup 🖱️ ▸ www.amazon.co....
    〓 GET ADOBE APPS ▾
    --- --- --- ---
    ✅ Photoshop ➧ prf.hn/l/20Bd3Lj
    ✅ After Effects ➧ prf.hn/l/OVxMyzj
    ✅ Premiere Pro ➧ prf.hn/l/DRPwkEZ
    🔵 All Adobe Apps ➧ prf.hn/l/LbkejMN
    --- --- --- ---
    〓 PLAYLISTS ▾
    ---
    Uploads ▸ bit.ly/1O7YbLQ
    Photoshop ➥ bit.ly/1Hd8CfQ
    Sony Vegas ➥ bit.ly/1OWjDoc
    After Effects ➥ bit.ly/1MZkLkq
    ---
    〓 LINKS ▾
    ---
    🐦 Twitter ▸ / verticdesigns
    📷 Instagram ▸ / verticdesigns
    🌄 Free Stock Photos ▸ pexels.com/@ge...
    ---
    #ae #timer

Komentáře • 142

  • @VerticDesigns
    @VerticDesigns  Před rokem +34

    ✅ *After Effects* ➧ prf.hn/l/OVxMyzj
    Big thanks to @TvoyaZavarka for fixing the hours timer expression!
    ------------------------------------------------------------------------------------------------------------
    ⏰ *Minutes Timer Expression (**00:00**):*
    ------------------------------------------------------------------------------------------------------------
    slider = Math.round(effect("Slider Control")("Slider"))

    sec = slider%60
    min = Math.floor(slider/60)
    function addZero(n){ if (n

    • @beanlordy
      @beanlordy Před rokem

      How would you add hours to this formula?

    • @VerticDesigns
      @VerticDesigns  Před rokem

      ​@@beanlordy for that you'd type this
      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

    • @rimantasukneviciusnebulamo1166
      @rimantasukneviciusnebulamo1166 Před rokem

      @@VerticDesigns there is an error in 11 line
      hour = Math.floor(slider/3600) function addZero(n){ if (n

    • @VerticDesigns
      @VerticDesigns  Před rokem

      @@rimantasukneviciusnebulamo1166 I'll have a look and check it out

    • @TvoyaZavarka
      @TvoyaZavarka Před rokem +6

      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

  • @Platinum_XYZ
    @Platinum_XYZ Před rokem +5

    thank you so much! this is exactly what I needed.
    thanks for keeping the video short and showing what to do straight away! I'll definitely use this trick all the time now

  • @daisypriya3127
    @daisypriya3127 Před 6 dny

    Thank you so much for the tutorial! Very easy to follow :)

  • @dot-Justin
    @dot-Justin Před 13 dny +1

    expression:
    slider = Math.round(effect("Slider Control")("Slider"))

    sec = slider%60
    min = Math.floor(slider/60)
    function addZero(n){ if (n

    • @AniProOfficial
      @AniProOfficial Před 3 dny

      there is better script for after effect I have been using which is Counter Pro , its official script form aescript. so checp but really time saving

  • @RBHD93
    @RBHD93 Před 4 měsíci +3

    I'm getting an error showing on function addZero(n){ if (n

  • @rhodrithomas4524
    @rhodrithomas4524 Před 9 měsíci +5

    Great, but how do you align it / fix it so that you get equal space of digits at all times?

    • @rafaelriva5981
      @rafaelriva5981 Před 7 měsíci +1

      You need to use a mono space font, otherwise, the font itself has different spaces for each digit, so you can't align it.

  • @jxdzi
    @jxdzi Před 10 měsíci +10

    doesn't work in AE 2024

  • @felipemartinez8464
    @felipemartinez8464 Před 2 měsíci +1

    muchísimas gracias Crack! Saludos desde México

  • @pavelusha1992
    @pavelusha1992 Před 8 měsíci +15

    I am sorry, but this solution is over complicated. You shouldn't change the expression engine to make something simple like this work. Also Your expression is an overkill. so many lines of code, but you need only one line:
    timeToTimecode(effect("Slider Control")("Slider")).substr(3,5);
    This line does exactly what you need and you don't have to change any preferences. It would work no matter which expression engine is on...
    oh. And if you need it with hours then just do this version:
    timeToTimecode(effect("Slider Control")("Slider")).substr(0,8);

    • @peachypers
      @peachypers Před 5 měsíci +1

      hello, what does error at line 0 in property slider of layer 1 mean?? thank you for your help

    • @pavelusha1992
      @pavelusha1992 Před 5 měsíci

      @@peachypers I am not sure what exactly you're trying to do, but I think you copied and pasted this expression on the slider control, but this expression written to be used on the text layer SourceText property. It returns String value and slider control expects numeric value, so you get an error message.

    • @cellstunts
      @cellstunts Před 5 měsíci

      Wow this works beautifully. Are you a programmer by trade? I don't understand how people understand the expressions in AE so well.

    • @pavelusha1992
      @pavelusha1992 Před 4 měsíci

      no. I am working in post production. Kinda like generalist, but mostly do compositor's work. Guess just have been doing it for a very long time (over 25 yers). Plus I always liked programming. It's fun and saves time :)
      @@cellstunts

    • @mooseypm3073
      @mooseypm3073 Před 2 měsíci +1

      Thanks man, saved me a whole other google search for why his version was giving me errors lol

  • @Insipedia
    @Insipedia Před 9 měsíci +2

    When I did everything in this video, it still showed an error. Namely, it said "invalid result (divide by zero?) and it was referring to the very first line of code for the expression. If you can give me a solution to this issue that would be amazing, as this is driving me crazy...

  • @nathanrogersstudios
    @nathanrogersstudios Před 6 měsíci +1

    Thanks for this! Coincidentally, I needed a 5 minute timer. This was perfect.

    • @VerticDesigns
      @VerticDesigns  Před 6 měsíci

      It was meant to be then haha and no worries

    • @vincentsansevero7590
      @vincentsansevero7590 Před 6 měsíci

      How did you modify the expression for 5 minutes/less than 10 minutes?

    • @VerticDesigns
      @VerticDesigns  Před 6 měsíci

      @@vincentsansevero7590 do you mean like re-edit the expression or creating the expression?

    • @vincentsansevero7590
      @vincentsansevero7590 Před 6 měsíci

      @@VerticDesigns Yes, how to make the timer < 10 mins? I changed the last line to '(min) + ":" + addZero(sec)', and it is displaying properly, but the counter is counting "slower" than "normal" time

    • @VerticDesigns
      @VerticDesigns  Před 6 měsíci +1

      @@vincentsansevero7590 oh right just make sure to also update your project to 10 min and to change the timer speed you move the keyframes closer together

  • @wehearttrends
    @wehearttrends Před rokem +11

    Excellent tutorial!
    Para los que tengan el programa en español, deben cambiar "slider" por "deslizador" en la fórmula tantas veces como aparezca y "Slider control" por "Controlador del deslizador"✅✅
    deslizador = Math.round(effect("Control del deslizador")("Deslizador"))

    sec = deslizador%60
    min = Math.floor(deslizador/60)
    function addZero(n){ if (n

    • @fernandoangel7254
      @fernandoangel7254 Před rokem

      Sabes si hay alguna forma de evitar el movimiento de los números? si te fijas cuando avanza el contador los números de la derecha se desplazan, ¿hay alguna forma de que esto no pase?

    • @wehearttrends
      @wehearttrends Před rokem +1

      @@fernandoangel7254 No sé sea la solución adecuada pero yo lo hice con el texto alineado al centro, así se desplaza de forma pareja a la derecha y a la izquierda. Si ves en el tutorial él tiene el texto alineado a la izquierda y por ello los números de la izquierda permanecen fijos en el origen

    • @wehearttrends
      @wehearttrends Před rokem +1

      @@fernandoangel7254 Hay dos formas, una sería haciendo dos elementos que funcionen por separado y alinear ambos a la derecha, o lo otro es que utilices una tipografía de ancho fijo, que cada número ocupe el mismo espacio
      se entiende?

    • @fernandoangel7254
      @fernandoangel7254 Před rokem

      @@wehearttrends pues lo voy a probar, estoy haciendo algunas cuentas regresivas con fuentes muy especificas, es decir, que la idea de usar otra fuente la descarto, pero lo de usar dos elementos por separados no se me había ocurrido, gracias por la idea camarada se entendió perfectamente.

    • @gonza_x99
      @gonza_x99 Před 11 měsíci

      te quiero muchas gracias

  • @Herorad1
    @Herorad1 Před 5 měsíci

    Thank you! this is the only timer i could find that worked with the latest version of ae

  • @paulnicholas7393
    @paulnicholas7393 Před 5 měsíci +1

    No need to change the prefs use this:
    slider = Math.round(effect("Slider Control")("Slider"));
    sec = slider%60 ;
    min = Math.floor(slider/60);
    addZero = function(n){
    if (n

  • @rylbbyv
    @rylbbyv Před 22 dny

    Thank you!

  • @drancov
    @drancov Před 7 měsíci +2

    How do you keep the digits to stay in a constrained position so that the colon doesn't shuffle left and right as the countdown goes? Similar to a digital alarm clock positioning.

    • @CaymenG
      @CaymenG Před 4 měsíci

      I also would like to know

  • @Xelalex07
    @Xelalex07 Před 2 měsíci +1

    Big Thanks Broooo

    • @AniProOfficial
      @AniProOfficial Před 3 dny

      there is better script for after effect I have been using which is Counter Pro , its official script form aescript. so checp but really time saving

  • @Kenny-Ross
    @Kenny-Ross Před 7 měsíci

    Thank you sir! I just found your channel. Everything worked. Now this is something else I can add to my Ae tricks.

    • @VerticDesigns
      @VerticDesigns  Před 7 měsíci

      No problem and I'm really glad to hear that! Also welcome to my channel

  • @KorotaGaming
    @KorotaGaming Před 9 měsíci

    Thank you! Easy to follow and exactly what I was after. 🙌🏻

  • @Soyrva
    @Soyrva Před rokem +2

    Is there a way to adjust kerning and baseline shift once the expression has been added?

  • @fionanimations
    @fionanimations Před 7 měsíci

    Thank you! this is just what I was looking for 😊

  • @easyway5319
    @easyway5319 Před 5 měsíci

    Thank you sooo much !!!!

  • @creativeteam6207
    @creativeteam6207 Před 5 měsíci

    Thank you so much!

  • @Lucreaux
    @Lucreaux Před 6 měsíci

    Thank you. This helped!

  • @EricVasquezDesign
    @EricVasquezDesign Před rokem

    Great tutorial! TY 👍

  • @Birb.a
    @Birb.a Před 10 měsíci

    amazing stuff... i give this video a 10/10

  • @gabrielmorales930
    @gabrielmorales930 Před 4 měsíci

    thanks, very appreciated

  • @jordanvine4988
    @jordanvine4988 Před rokem

    sheer brilliance

  • @Lucreaux
    @Lucreaux Před 6 měsíci +1

    How would I remove the zero that is placed by the line of code here:
    function addZero(n){ if (n

    • @prht93530
      @prht93530 Před 5 měsíci +1

      Remove addZero on "min" for the last string:
      slider = Math.round(effect("Slider Control")("Slider"))
      sec = slider%60
      min = Math.floor(slider/60)
      function addZero(n){ if (n

  • @user-ex6bu6cl3v
    @user-ex6bu6cl3v Před 10 měsíci

    Super useful! Big thanks!

  • @LeeLumley
    @LeeLumley Před 6 měsíci

    Thanks for the tutorial. One Question; why does it only show the first digits of 10, 20, 30, 40, 50, etc and is there a way to change it?

  • @Nick_Plaugher_photo
    @Nick_Plaugher_photo Před 5 měsíci

    Is there a way to make the black background transparent, so when I export I will have only the timer? (This is my first time using AE) Great video!

    • @jpfreelancefilm
      @jpfreelancefilm Před 5 měsíci

      You need to export with an alpha layer. Don't add a background with your countdown timer and export in these settings: Format-Quicktime ; Format Options-ProRes 4444 ; Channels-RGB+Alpha
      This will give you a transparent background in an mov format and you can drop it on any video. We do this all the time at my job and its a lifesaver!

  • @Harshdezines
    @Harshdezines Před rokem +2

    hey, h0w can i add miiseconds to this? thanks for the tutorial

  • @obr_
    @obr_ Před rokem +1

    Great video! Just one question, do you know how can i keep the decimals after the seconds?

  • @mashby100
    @mashby100 Před rokem

    legend!

  • @nikivanenko2253
    @nikivanenko2253 Před rokem

    thanks!

  • @lukabajic3122
    @lukabajic3122 Před rokem +2

    The expressions and scripts preference is not available in Adobe After Effects CC 2023, so this is not a solution just yet.

    • @somehannahperson
      @somehannahperson Před rokem

      Yes it is. It's in Project Settings. Not in Preferences.

    • @plaxold
      @plaxold Před 11 měsíci

      i think i found it
      left side of the screen in project (above the timeline) > there's 6 buttons, click the 5th one (or the one that says "8 bpc", "16 bpc" or "32 bpc" and then go to expressions

  • @BabakMehr
    @BabakMehr Před 10 měsíci

    Thank you very mutch♥♥♥♥

  • @mateussalviano3439
    @mateussalviano3439 Před rokem

    thank you

  • @TwistSoulG
    @TwistSoulG Před rokem

    Great Video man!! Btw, do u know how to put it backwards? I mean, like a countdown timer?

  • @maydhavithakur3096
    @maydhavithakur3096 Před rokem +1

    Hello what to do to add zero for hours to this?

  • @DJStebbs
    @DJStebbs Před rokem +1

    This worked good for a genaric clock where time dose not need to correct but to get it to be correct time (is was in a 23.98 project that might be why) I had to swap
    slider = Math.round(effect("Slider Control")("Slider"))
    with
    slider = Math.floor(effect("Slider Control")("Slider"))
    Also to help reduced the the jumping around because the kerning on 1 I build the Sec and Min as different layers by themselves and had ( : ) also be its own layer. Used at temp 00:00 layer as a template for spacing.
    After all that found a font the has the Kerning the same for all Number (Digital-7 Mono) then went back to the one layer version
    Thank you

  • @peterfortunatus
    @peterfortunatus Před rokem

    Appreciate bro 💪

  • @Ta-Lika_Live
    @Ta-Lika_Live Před rokem

    💛💛💛Thank U!!!💛💛💛

  • @user-lk1sw6jp9k
    @user-lk1sw6jp9k Před 6 měsíci

    The expression don't work (always a error code) after change setting projects...

  • @mariacelis9278
    @mariacelis9278 Před 4 měsíci +1

    Im subscribing just for the accent

    • @AniProOfficial
      @AniProOfficial Před 3 dny

      there is better script for after effect I have been using which is Counter Pro , its official script form aescript. so checp but really time saving

  • @newlydady
    @newlydady Před 9 měsíci +1

    If it doesn't work try to paste code into source text, not into slider tool............... I did this mistake

  • @user-zr7xp3ol9i
    @user-zr7xp3ol9i Před 11 měsíci

    Hi, i've used it in a project it worked, and i just reopened it and after effects says there is an error in the expression. It says "syntax error : unexpected token 'else' "

    • @user-zr7xp3ol9i
      @user-zr7xp3ol9i Před 11 měsíci +1

      switching to the legacy expression engine fixed it

  • @trickcompany
    @trickcompany Před 6 měsíci

    hey, even tho I set the the settings to the one you said, the error doesnt go away?

    • @VerticDesigns
      @VerticDesigns  Před 6 měsíci

      Double check the expression and make sure there's no gaps, random empty spaces or just reboot ae

    • @studiopictures9315
      @studiopictures9315 Před 5 měsíci

      I need to place a semicolon here, otherwise it won't work for me either: function addZero(n){ if (n

  • @Benjamin-nn5qy
    @Benjamin-nn5qy Před rokem

    how do you keep the timer from moving / shifting along the baseline?

    • @VerticDesigns
      @VerticDesigns  Před rokem

      If you keep the anchor point center align in the middle of the text box and center align your text box it auto center align the timer

    • @somehannahperson
      @somehannahperson Před rokem

      Use a monospaced font. Like roboto or arial

  • @INNERACADEMIA
    @INNERACADEMIA Před rokem

    thank you, so to the point and helpful! I make pomodoro timers for my videos and learned how to do that watching your tutorial.

    • @VerticDesigns
      @VerticDesigns  Před rokem

      Oh right that's really cool and I'm glad my video was helpful :)

  • @minerkey682
    @minerkey682 Před 5 měsíci

    great tutorial! But why the timecode effect is incapable of letting you use a custom font is just ridiculous. It's 2024 and we're paying Adobe for this software, we shouldn't be required to write our own countdowns just so we can use a custom font.

  • @unseenninja130
    @unseenninja130 Před rokem

    hey man! I'm using AE 2015 and can't find any expression setting over there... If you know what to do... I'd be very thankful to you!

    • @unseenninja130
      @unseenninja130 Před rokem

      oh! I did something and its actually started working lol xd! anyways thanks for your such a beautiful tutorial!

    • @VerticDesigns
      @VerticDesigns  Před rokem

      oh right well im glad it' working now

    • @gojosheart
      @gojosheart Před rokem

      @@unseenninja130what did u do? im having the same problem :)

    • @unseenninja130
      @unseenninja130 Před rokem

      @@gojosheart no shot brhh💀... literally did it 3 months ago and I don't remember anything bout it now! but luckily I got the project file if you want it?

  • @alisherrasulov1039
    @alisherrasulov1039 Před 7 měsíci

    like and subscribe, thank you!

  • @owentorres6657
    @owentorres6657 Před rokem +1

    The error of expression keeps apearing

    • @VerticDesigns
      @VerticDesigns  Před rokem

      Did you switch to that legacy expression engine?

    • @VerticDesigns
      @VerticDesigns  Před rokem

      Also just double check the code because the littlest mistakes causes the errors aha

    • @hx.blakeney
      @hx.blakeney Před rokem +5

      correct code is here:
      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 < 10) {
      return "0" + n;
      } else {
      return n;
      }
      }
      addZero(hour) + ":" + addZero(min) + ":" + addZero(sec);

  • @f_kitsunex
    @f_kitsunex Před 11 měsíci

    10q man)

  • @crissarodaeli3793
    @crissarodaeli3793 Před rokem

    What do you mean by "home"?? is it windows key?

    • @VerticDesigns
      @VerticDesigns  Před rokem

      the home key on a standard keyboard right above the end key

  • @manish-ct6er
    @manish-ct6er Před 5 měsíci

  • @misvideospadres
    @misvideospadres Před 7 měsíci

    Why 300? In the slider

    • @VerticDesigns
      @VerticDesigns  Před 7 měsíci

      I think the slider operates by frames so I believe that would be the amount of frames that you'd need for a 5 min timer. Not 100% sure on that one

  • @nickverzilli3181
    @nickverzilli3181 Před rokem +1

    this didnt work for me but then I just asked chatgpt to write it and that did work in way less time.

    • @nickverzilli3181
      @nickverzilli3181 Před rokem

      timeToDisplay = Math.min(time, 5);
      formattedTime = timeToDisplay.toFixed(2);
      formattedTime;

    • @VerticDesigns
      @VerticDesigns  Před rokem

      @@nickverzilli3181 oh fair enough if that short version works the same then even better

  • @stiffyBlicky
    @stiffyBlicky Před 3 měsíci

    your function doesnt work, come on man

  • @alexbarba5508
    @alexbarba5508 Před 11 měsíci +1

    En español este me funcionó:
    Deslizador = Math.round(effect("Control del deslizador")("Deslizador"))

    sec = Deslizador%60
    min = Math.floor(Deslizador/60)
    function addZero(n){ if (n

    • @noizee05
      @noizee05 Před 11 měsíci +1

      Mil gracias!! me estaba mandando error al escribirlo en inglés!

  • @Raufka
    @Raufka Před 5 měsíci +1

    thank you SO MUCH

    • @AniProOfficial
      @AniProOfficial Před 3 dny

      there is better script for after effect I have been using which is Counter Pro , its official script form aescript. so checp but really time saving

  • @martinbajsic4836
    @martinbajsic4836 Před rokem

    thanks!