After Effects: Countdown Timer Tutorial (Quick Easy Timer)

Поділитися
Вставка
  • Опубліковано 7 бер 2023
  • 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.uk/shop/verticd...
    〓 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/@george-283081
    ---
    #ae #timer
  • Навчання та стиль

КОМЕНТАРІ • 134

  • @VerticDesigns
    @VerticDesigns  Рік тому +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 Рік тому

      How would you add hours to this formula?

    • @VerticDesigns
      @VerticDesigns  Рік тому

      ​@@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 Рік тому

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

    • @VerticDesigns
      @VerticDesigns  Рік тому

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

    • @TvoyaZavarka
      @TvoyaZavarka Рік тому +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 Рік тому +4

    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

  • @KorotaGaming
    @KorotaGaming 9 місяців тому

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

  • @Herorad1
    @Herorad1 4 місяці тому

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

  • @fionanimations
    @fionanimations 7 місяців тому

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

  • @EricVasquezDesign
    @EricVasquezDesign Рік тому

    Great tutorial! TY 👍

  • @user-ex6bu6cl3v
    @user-ex6bu6cl3v 10 місяців тому

    Super useful! Big thanks!

  • @Kenny-Ross
    @Kenny-Ross 6 місяців тому

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

    • @VerticDesigns
      @VerticDesigns  6 місяців тому

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

  • @Birb.a
    @Birb.a 9 місяців тому

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

  • @felipemartinez8464
    @felipemartinez8464 2 місяці тому

    muchísimas gracias Crack! Saludos desde México

  • @easyway5319
    @easyway5319 5 місяців тому

    Thank you sooo much !!!!

  • @mashby100
    @mashby100 11 місяців тому

    legend!

  • @Soyrva
    @Soyrva Рік тому +2

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

  • @INNERACADEMIA
    @INNERACADEMIA Рік тому

    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  Рік тому

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

  • @jordanvine4988
    @jordanvine4988 Рік тому

    sheer brilliance

  • @Lucreaux
    @Lucreaux 5 місяців тому

    Thank you. This helped!

  • @creativeteam6207
    @creativeteam6207 4 місяці тому

    Thank you so much!

  • @Xelalex07
    @Xelalex07 Місяць тому

    Big Thanks Broooo

  • @mateussalviano3439
    @mateussalviano3439 Рік тому

    thank you

  • @peterfortunatus
    @peterfortunatus Рік тому

    Appreciate bro 💪

  • @martinbajsic4836
    @martinbajsic4836 Рік тому

    thanks!

  • @nathanrogersstudios
    @nathanrogersstudios 6 місяців тому +1

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

    • @VerticDesigns
      @VerticDesigns  5 місяців тому

      It was meant to be then haha and no worries

    • @vincentsansevero7590
      @vincentsansevero7590 5 місяців тому

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

    • @VerticDesigns
      @VerticDesigns  5 місяців тому

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

    • @vincentsansevero7590
      @vincentsansevero7590 5 місяців тому

      @@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  5 місяців тому +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

  • @RBHD93
    @RBHD93 3 місяці тому +3

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

  • @Ta-Lika_Live
    @Ta-Lika_Live Рік тому

    💛💛💛Thank U!!!💛💛💛

  • @gabrielmorales930
    @gabrielmorales930 3 місяці тому

    thanks, very appreciated

  • @BabakMehr
    @BabakMehr 9 місяців тому

    Thank you very mutch♥♥♥♥

  • @obr_
    @obr_ Рік тому +1

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

  • @Harshdezines
    @Harshdezines Рік тому +2

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

  • @maydhavithakur3096
    @maydhavithakur3096 Рік тому +1

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

  • @rhodrithomas4524
    @rhodrithomas4524 8 місяців тому +5

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

    • @rafaelriva5981
      @rafaelriva5981 6 місяців тому

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

  • @Insipedia
    @Insipedia 8 місяців тому +1

    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...

  • @TwistSoulG
    @TwistSoulG Рік тому

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

  • @LeeLumley
    @LeeLumley 5 місяців тому

    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?

  • @wehearttrends
    @wehearttrends Рік тому +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 Рік тому

      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 Рік тому +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 Рік тому +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 Рік тому

      @@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 10 місяців тому

      te quiero muchas gracias

  • @Nick_Plaugher_photo
    @Nick_Plaugher_photo 4 місяці тому

    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 4 місяці тому

      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!

  • @DJStebbs
    @DJStebbs Рік тому +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

  • @drancov
    @drancov 7 місяців тому +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 3 місяці тому

      I also would like to know

  • @jxdzi
    @jxdzi 9 місяців тому +9

    doesn't work in AE 2024

  • @f_kitsunex
    @f_kitsunex 10 місяців тому

    10q man)

  • @Lucreaux
    @Lucreaux 5 місяців тому +1

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

    • @prht93530
      @prht93530 4 місяці тому +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

  • @pavelusha1992
    @pavelusha1992 7 місяців тому +14

    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 4 місяці тому +1

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

    • @pavelusha1992
      @pavelusha1992 4 місяці тому

      @@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 4 місяці тому

      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 3 місяці тому

      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 Місяць тому +1

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

  • @unseenninja130
    @unseenninja130 Рік тому

    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 Рік тому

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

    • @VerticDesigns
      @VerticDesigns  Рік тому

      oh right well im glad it' working now

    • @gojosheart
      @gojosheart Рік тому

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

    • @unseenninja130
      @unseenninja130 Рік тому

      @@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?

  • @Benjamin-nn5qy
    @Benjamin-nn5qy Рік тому

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

    • @VerticDesigns
      @VerticDesigns  Рік тому

      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 Рік тому

      Use a monospaced font. Like roboto or arial

  • @user-zr7xp3ol9i
    @user-zr7xp3ol9i 10 місяців тому

    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 10 місяців тому +1

      switching to the legacy expression engine fixed it

  • @user-lk1sw6jp9k
    @user-lk1sw6jp9k 5 місяців тому

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

  • @mariacelis9278
    @mariacelis9278 4 місяці тому

    Im subscribing just for the accent

  • @trickcompany
    @trickcompany 5 місяців тому

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

    • @VerticDesigns
      @VerticDesigns  5 місяців тому

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

    • @studiopictures9315
      @studiopictures9315 4 місяці тому

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

  • @lukabajic3122
    @lukabajic3122 Рік тому +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 Рік тому

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

    • @plaxold
      @plaxold 11 місяців тому

      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

  • @manish-ct6er
    @manish-ct6er 5 місяців тому

  • @crissarodaeli3793
    @crissarodaeli3793 Рік тому

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

    • @VerticDesigns
      @VerticDesigns  Рік тому

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

  • @newlydady
    @newlydady 8 місяців тому +1

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

  • @minerkey682
    @minerkey682 4 місяці тому

    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.

  • @alisherrasulov1039
    @alisherrasulov1039 6 місяців тому

    like and subscribe, thank you!

  • @owentorres6657
    @owentorres6657 Рік тому +1

    The error of expression keeps apearing

    • @VerticDesigns
      @VerticDesigns  Рік тому

      Did you switch to that legacy expression engine?

    • @VerticDesigns
      @VerticDesigns  Рік тому

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

    • @hx.blakeney
      @hx.blakeney Рік тому +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);

  • @marceloaguires
    @marceloaguires 6 місяців тому

    Why 300? In the slider

    • @VerticDesigns
      @VerticDesigns  6 місяців тому

      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 Рік тому +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 Рік тому

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

    • @VerticDesigns
      @VerticDesigns  Рік тому

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

  • @stiffyBlicky
    @stiffyBlicky 3 місяці тому

    your function doesnt work, come on man

  • @alexbarba5508
    @alexbarba5508 10 місяців тому +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 10 місяців тому +1

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

  • @paulnicholas7393
    @paulnicholas7393 4 місяці тому +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

  • @Raufka
    @Raufka 4 місяці тому

    thank you SO MUCH

  • @nikivanenko2253
    @nikivanenko2253 Рік тому

    thanks!