Animating Numbers Counting Up In After Effects | Beginner Tutorial

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 824

  • @lukaskuth7195
    @lukaskuth7195 5 років тому +911

    I watched this video 4 years ago to learn how to do it. I promised myself I will always remember how to do it! I never remember how to do it and always come back to this video.
    THANKS!

    • @Learnin5
      @Learnin5  5 років тому +10

      Thanks for coming back, Lukas!

    • @simonwebb7391
      @simonwebb7391 5 років тому +3

      yep why won’t this go into my head!!?

    • @rosario9527
      @rosario9527 5 років тому +3

      Same! xD

    • @dipthehip
      @dipthehip 5 років тому

      wow me too lol

    • @play_north
      @play_north 5 років тому +6

      I'm exactly the same boat. Done it a million times. Always forget the expression. For anyone else it's: Math.round(effect("Slider Control")("Slider"))

  • @RMigrin
    @RMigrin 3 роки тому +186

    If you want it to automatically add commas:
    num = Math.round(effect("Slider Control")("Slider"));
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)

    • @dre2010
      @dre2010 2 роки тому +11

      The world needs more people like you. Thank you man!

    • @ejamz9950
      @ejamz9950 2 роки тому +3

      legend in the making.

    • @abraham6567
      @abraham6567 2 роки тому +3

      thanks This is the real deal!

    • @playroomcreative
      @playroomcreative 2 роки тому +2

      Thanks!!

    • @tshepomsimango7667
      @tshepomsimango7667 2 роки тому +3

      Thanks cause this shit was going haywire my man!

  • @labelofficial9332
    @labelofficial9332 3 роки тому +101

    If you want it to have 2 decimal points, change the code to:
    n = effect("Slider Control")("Slider");
    d = 100;
    Math.round(n*d)/d

    • @plixplop
      @plixplop 2 роки тому +4

      Thanks you just saved me another 20 minutes of searching forums!
      And you can change how many decimal places by changing d to 10, 100, 1000 etc. The number of 0s is how many decimal places.

    • @MustafaBatu
      @MustafaBatu 2 роки тому

      You are a life-saver dude. Thanks.

    • @TBCCullman
      @TBCCullman 2 роки тому +5

      What if you want it to have a comma when you get to 1,000 and up?

    • @adictivedesign
      @adictivedesign 2 роки тому +1

      and if i want a + infront?

    • @richardmoore9874
      @richardmoore9874 2 роки тому +1

      How do I make it go above 1 million it seems whatever number I put in over 1 million it always resorts back to 1 million.

  • @LightspeedTutorials
    @LightspeedTutorials Рік тому +7

    add text - fx: slider control = drop onto text layer. 0:58
    Text layer - Source text, Alt click to open expression cmd line. 1:18
    Effects - pickwhip Source text expression to Effects slider control. 1:27
    Add Math.round( ) function around your auto generated expression

  • @ehsan_shardum
    @ehsan_shardum 4 роки тому +40

    this is great! no annoying music, just pure clean talking and instructions, thnx man, keep up the good work.

  • @ابووليدميديا
    @ابووليدميديا 5 років тому +160

    Math.round(effect("Slider Control")("Slider"))

    • @الغريب-م4م
      @الغريب-م4م 4 роки тому

      ما هذه اللغة يا صاح

    • @LividMailleann
      @LividMailleann 4 роки тому

      thx

    • @rice2299
      @rice2299 4 роки тому +1

      thanks!

    • @4jp
      @4jp 4 роки тому +5

      Math.round only gives you half of the first and last number because it changes at x.5. Use math.floor when counting up and math.ceil when counting down.

    • @ReelJames
      @ReelJames 4 роки тому

      @@4jp Jeff, *THANK YOU!* Took me finding your comment to figure out how to solve my expression error when typing Math.round. You rock!

  • @fcam
    @fcam 3 роки тому +19

    for triple digits counter animation effect in #aftereffects
    x=Math.round(effect("Slider Control")("Slider")).toFixed(0);
    while (x.length < 3) x = "0" + x; x

    • @henfromhell
      @henfromhell 2 роки тому

      Huge thanks for this!

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

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

      My man. Just what I needed!

    • @GEOLVFX
      @GEOLVFX 7 місяців тому +1

      Our savior! haha thanks!

    • @Recits_Caches
      @Recits_Caches Місяць тому +1

      For me this worked better :
      x = Math.round(effect("Slider Control")("Slider")).toFixed(0);
      x.replace(/\B(?=(\d{3})+(?!\d))/g, " ");

  • @justarthur7110
    @justarthur7110 Рік тому +11

    To solve text going to the left or to the right, you have to align it in Paragraph Options.

  • @snapicvs
    @snapicvs 7 років тому +2

    perfectly done. Quick, direct, straight to the point and simple. No extras, no explanation of extreme basics (how to create a comp, etc), no discussion of what you read on fakebook today or what you had for lunch, just a quick fast tutorial. Anyone who wants to make tutorials online, PAY ATTENTION! This is how it's done. Thank you!

  • @Mike_Schmitz_Videos
    @Mike_Schmitz_Videos 4 роки тому +11

    I've been watching this video for years. Finally, I did it without needing to watch it again. I still thought I would come back for old time sake.

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

      Update: I've forgotten how to this and now I'm back again :)

  • @DeerNailEdits
    @DeerNailEdits 10 місяців тому +1

    I dont know where you are, but thank you man. Even after 8 years, this still helps

  • @AineHowTo
    @AineHowTo 9 днів тому

    8 years later and still good, quick and right to the point, amazing

  • @ScarlettStoorvogel
    @ScarlettStoorvogel 10 місяців тому +1

    Did I learn something? Absolutely! Do I now have twelve more questions about AE? Certainly!

  • @patrickmccaffrey1187
    @patrickmccaffrey1187 7 років тому +2

    THANK GOD FINALLY SOMEONE WHO GETS TO THE POINT FAST!!! THANK GOD, AND THANK YOU, Patrick

  • @seannemetz4856
    @seannemetz4856 3 роки тому +1

    You are way above average in your delivery and speaking ability, more tutorials please!

    • @tinak.4534
      @tinak.4534 2 місяці тому +1

      τττττττττττ959856τθιο;ααωψχοσςιςσε3οε3ιθιρτ5διοεδοεοττρυηυ6υ55τγτρ

  • @ashantighania225
    @ashantighania225 6 років тому +56

    Thank you!
    -Desperate animator at 4:48am.

    • @m3ormy
      @m3ormy 4 роки тому +2

      5:40 AM

    • @matvte
      @matvte 4 роки тому +1

      I feel the same as you do pal. Hope you got the job done.

    • @venetziagajardo7376
      @venetziagajardo7376 3 роки тому

      @@matvte 0:00

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

    bruh, after effects never cease to amaze with it's possibiities. and thank you for this amazing tutorial!

  • @jamessteidl5260
    @jamessteidl5260 4 роки тому +3

    PERFECT TUTORIAL!!! Fast and to the point. No long-winded intro. GREAT!!!

  • @mqses
    @mqses 7 років тому +14

    When he says alt+y on pc at 0:37 he means ctrl+y

  • @theoandolaf
    @theoandolaf 4 роки тому +3

    How do you make your numbers aligned? Mine keep shifting as the numbers get higher.

  • @jakealterman7003
    @jakealterman7003 3 роки тому

    I've watched this video at least 50 times and it works every time

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

    Even after 8 years it's still so helpful!!

  • @ladaroo
    @ladaroo 3 роки тому +1

    Woah.... Who'd have thought Roman from Succession would be such a good After Effects tutour. Thanks dude!

  • @brianrappaport
    @brianrappaport 3 роки тому +1

    Awesome tutorial!! Just one piece of advise, Math has to be with a capital M otherwise won't work, spent 10 minutes trying to figure it out!

  • @wolfdogfilmes
    @wolfdogfilmes 2 роки тому

    thanks, dude. saved my life in a job today!

  • @NateJGames
    @NateJGames 4 роки тому +2

    Thank you! Credit to @Derin İlkcan Karakoç but just so this is more visible to people, this is how you round up in k's (needed to do this for my UA-cam Channel :)
    Math.round(effect("Slider Control")("Slider") / 100)/10 + "k"

  • @BumilangitID
    @BumilangitID 5 років тому

    Easy to understand. Thanks

  • @Adriii-hl2xd
    @Adriii-hl2xd 5 місяців тому

    you are amazing homie, i hope you can see that eight years later your video is still useful, thanks

  • @169PNSL
    @169PNSL 8 років тому +8

    Most worthy 5 min of my day. Thank you very much!

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

    Awesome! Now looking into adding a speed ramp and some motion blur

  • @leoeditor
    @leoeditor 3 роки тому

    I always come back to this video!!! TKS

  • @franklozano
    @franklozano 5 років тому +13

    Thank you so much! It worked like a charm. I do have one question, is there a way to insert a comma and/or $ signs to get $100,000.00 for instance.

    • @kahveciderin
      @kahveciderin 4 роки тому +3

      use this: "$" + Math.round(effect("Slider Control")("Slider"))

    • @mefrompast
      @mefrompast 4 роки тому +1

      @@kahveciderin what if we want counting in k...like 1k or 2k...what do we do then?

    • @kahveciderin
      @kahveciderin 4 роки тому +2

      @@mefrompast divide by 1000, then round and add + "k" at the end

    • @kahveciderin
      @kahveciderin 4 роки тому +2

      @@mefrompast Untested but should work: Math.round(effect("Slider Control")("Slider") / 1000) + "k"

    • @mefrompast
      @mefrompast 4 роки тому

      @@kahveciderin IT IS WORKING!
      THANK YOU SOO MUCH!!!

  • @Samsonoff
    @Samsonoff 7 років тому +31

    Thanks, dude, you rock! Saved me a ton of time. Subscribed.

  • @skini
    @skini 6 років тому +14

    Hey, great tutorial! How can I make this animation with numbers with percentage and separated by comma. Ex.: 75,2% ?

    • @stepahinigor
      @stepahinigor 4 роки тому +15

      For one symbol after dot: Math.round(effect("Slider Control")("Slider")*10)/10
      For two symbol after dot: Math.round(effect("Slider Control")("Slider")*100)/100
      ...
      To add a percent sign: Math.round(effect("Slider Control")("Slider")*100)/100 + "%"

    • @liekevalk154
      @liekevalk154 4 роки тому

      HERO

    • @CCOOCatalunya
      @CCOOCatalunya 4 роки тому +10

      Change whatever you had in source text by:
      num = Math.round(effect("Slider Control")("Slider"));
      function addCommas(x) {
      return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
      }
      addCommas(num)

    • @sashikaparanamana5360
      @sashikaparanamana5360 4 роки тому +5

      @@CCOOCatalunya Legend!

    • @oryansbellttv806
      @oryansbellttv806 3 роки тому

      @@CCOOCatalunya hero

  • @loveesther4061
    @loveesther4061 29 днів тому

    What a last minute saviour..thanx!

  • @SB-gy2vx
    @SB-gy2vx Рік тому +1

    is there anyway to add "% complete" to the same text layer? or do I have to do it in a separate layer?
    edit:
    nvm I figure it out, if anyone wants to do that (or put any other text after or even before the counter, in the same layer):
    Math.round(effect("Slider Control")("Slider"))+"% complete"

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

      i copied that and it doesn't work... tried many versions of it and nothing worked
      can you help me out?

  • @rachellius8921
    @rachellius8921 2 роки тому

    FINALLY! This should be top result for finding how to do this, thank you!

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

    Useful and to the point. Highly appreciated 💯

  • @sanlapbiswas4093
    @sanlapbiswas4093 7 років тому +1

    you are so much interactive. enjoyed your way of talking. That energy. subscribed

    • @Learnin5
      @Learnin5  7 років тому

      Thank you! I also run a channel on everything for Premiere Pro if you'd like to check it out: ua-cam.com/users/austinnewman

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

    Thanks mate, it still so much helpful till now

  • @doulaeiiminc7430
    @doulaeiiminc7430 4 роки тому

    This video still make alot os sense like 4 years later. Thanks man

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

    Dude, great tutorial, I have one day until I finish my first feature and I was dreading this last little effect until seeing this video.

  • @beigeandbreeze
    @beigeandbreeze 3 роки тому

    Finding for so many hrs...finally, thankyou so much man, god bless you😇

  • @thinguy1tube
    @thinguy1tube 8 років тому +2

    Very quick and Helpful while I was in a bind on a freelance gig!
    Thanks Patrick!
    You made me much less scared of expressions in AE.

    • @Learnin5
      @Learnin5  8 років тому

      Glad it was helpful. Thanks for watching!

  • @LeoBodelle
    @LeoBodelle 6 років тому +2

    This is great, thanks. How can you control the speed?
    For example, I would like to count up dates (1800 to 2018) but it needs to change slowly at the start, then speed up and then slow down again when arriving close to 2018.
    A bit like you would use easy ease on motion.
    Cheers :)

  • @geoffaxon4470
    @geoffaxon4470 4 роки тому +14

    Good tutorial. Is there a way for the ever larger numbers to be displayed to the left of the starting zero figure rather than them being centred round the zero figure?

    • @Yzaiaz
      @Yzaiaz 3 роки тому +4

      Hi! i dont know if i arrived late, but my solution was select the number, and apply center text in the paragraph box. After that, i used align, to put the text is in the center.

    • @dvve25
      @dvve25 3 роки тому +1

      @@Yzaiaz Thank you so much. I was having this problem as well!

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

    how can we turn this into a MOGRT to use in premiere pro where you can easily adjust the numbers inside of PP instead of going back to AE? so a starting point number and end number? and also have a unit like %?

  • @angelag1213
    @angelag1213 3 роки тому +3

    Great tutorial. Still helping people even after 5 years. Thanks a lot!

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

    Thank you so much!! You just saved me from spending HOURS figuring this out.

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

    I can quote this video, but still need it cause I'm always so close but a little off. Love this guys voice and think he is hilarious

  • @YousifPhotoshopTutorials
    @YousifPhotoshopTutorials 7 років тому +27

    thanks that was awesome

    • @Chillerll
      @Chillerll 3 роки тому

      @Dayton Carson lol I looked your and Gideons account up and both of you created your accounts on the same day around a month ago! Isn't that a crazy coincidence?

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

    Legend, super easy to follow!

  • @sheikhskype
    @sheikhskype 3 роки тому +1

    In the beginning he says ALT+Y on pc but it's actually Control+Y

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

      thanks man

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

      yeah it really creates confusion to beginners like me but thankfully I have used ps for 5 yrs so I knew he is wrong for that

  • @slimmetry
    @slimmetry 10 місяців тому +1

    if you want to add a percent sign or other numbers/characters after the changing number...
    after the expression string for the slider control, add a space, + space, then "%""
    Like this:
    Math.round(effect("Slider Control")("Slider"))+ "%"

  • @deckermax
    @deckermax 3 роки тому +1

    Awesome video man, thanks a lot. How would I make the numbers to be decimated by "," like currency is?

  • @danbayat9180
    @danbayat9180 4 роки тому

    I searched for easy and useful tutorial in the Net , Now i can say your tutorial is the best for this topic
    TNX

  • @TheViggokid
    @TheViggokid 4 роки тому +5

    Dude I literally just applauded this. I promise the hours you've saved me will be put to good use :)

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

    You are incredible, a genius explaining, I was able to do it super easy and fast, I thank you very much ! Saludos desde Argentina

  • @edgarl.f.4471
    @edgarl.f.4471 8 років тому +20

    Awesome, life saver! It's actually Ctrl + Y for New layer on PC ;)

    • @edgarl.f.4471
      @edgarl.f.4471 8 років тому +1

      Where can I find the CC vignette on Ae? I don't see it under Stylize

    • @Learnin5
      @Learnin5  8 років тому

      are you working with After Effects CC? If you search in your effects panel, you should find it under stylize.

    • @edgarl.f.4471
      @edgarl.f.4471 8 років тому

      yep, I am working on Adobe After Effects CC 2015, but i don't see it there.

    • @Learnin5
      @Learnin5  8 років тому

      That's strange. You may have to create a new black layer, add an oval mask around it and turn the feathering on the mask up.

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

    Thanks bro, I really needed this.

  • @rawr-asmr
    @rawr-asmr 2 роки тому

    Thank you so much, not just for the technique but the commentary as well!!! 😂😂😂

  • @RagamHerbal
    @RagamHerbal 5 років тому +1

    Thanks, great tutorial !

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

    you're the goat man, thanks!

  • @damon621
    @damon621 7 років тому +2

    First tutorial that is just clean and it works right away, thank you!

  • @dreamdoodlefilms1989
    @dreamdoodlefilms1989 2 роки тому

    Thanx a lot man seriously you save my time & energy. God Bless you

  • @Eli-21
    @Eli-21 5 років тому +9

    I'm curious as to how you got the number to always stay centered even when it changed the amount of digits, when mine changes the amount of digits it will shift out of place until the last number 0 is on the left most side (I'm doing a countdown), is there a simple fix for this? (My anchor point is centered)

    • @arvidanseven862
      @arvidanseven862 5 років тому +9

      probably change the paragraph setting to centered

    • @Leycon
      @Leycon 4 роки тому

      same problem

    • @renevank
      @renevank 4 роки тому

      same problem...

    • @Eli-21
      @Eli-21 4 роки тому

      renevank I think the way I solved it was by re-centring the x position on the frame it changes the amount of digits

    • @renevank
      @renevank 4 роки тому

      @@Eli-21 yeah, I centered the anchor point and also aligned to the center. This is the final result!: ua-cam.com/video/L9mzS9OMXF4/v-deo.html
      Edit: (its 3am and this had to be done before upcoming class in a couple hours)

  • @27kjassy
    @27kjassy 3 роки тому +1

    THANKS IM GOING TO USE THIS

  • @Frethix
    @Frethix 3 роки тому +1

    old but gold

  • @PierceJPeterson
    @PierceJPeterson 3 роки тому +1

    Is there a template I can use for final cut pro?

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

    Thanks! I'm having difficulty keeping the number centred while it's climbing. Any thoughts?

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

    after 7 years, you are still a Legend! Thank you for a very clear tutorial and positive energy in the video

  • @paketlo
    @paketlo 4 роки тому +2

    Thank you mate for the tutorial. I have a question though, how do you round up 0.5? Thanks

    • @oiko2k4
      @oiko2k4 4 роки тому +1

      If decimal digits are needed, INCLUDING ",0" zero values, for example going 9,9 - 10,0 - 10,1. Also change the Number of digits before and after the comma, by changing the value of the variables.
      val = effect("Slider Control")("Slider");
      Number_of_Decimal_Digits = 1;
      Number_of_Normal_Digits = 1;
      sign = ""; s = Math.abs(val).toFixed(Number_of_Decimal_Digits); while (s.length < Number_of_Normal_Digits + Number_of_Decimal_Digits + 1) s = "0" + s; sign + s
      Add +"%" at the end, or any symbol or currency, to show it together with the number.

  • @Mintyygal
    @Mintyygal 3 роки тому

    hey i want to animate a custom number and not a rounded up number, like ex i wanted to animate this particular 7,93,34,127 number but its rounding up tp 100,000 or more rounded figure.. how do i stop that from happening?

  • @MichaelBlanco
    @MichaelBlanco 7 років тому +2

    Love you man.

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

    7 years later... THANKS! quick n easy

  • @top_productos
    @top_productos 4 роки тому +7

    En castellano es "Control de deslizador"

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

    nice! what about a nickel machine version?

  • @renzoquiroga5033
    @renzoquiroga5033 3 роки тому

    Man! I just saw this video, you are amazing! Nice job!

  • @wavetravelart5824
    @wavetravelart5824 4 роки тому

    Thanks a lot for this trick, Patrick !

  • @sidharthv
    @sidharthv 4 роки тому

    Did it in 5 minutes. Thanks bro.. 👌🏽

  • @SsPpIiTt
    @SsPpIiTt 3 роки тому +1

    Is there a way to include a comma (,) when it ticks over 1,000?

  • @daviddaywon
    @daviddaywon 2 роки тому

    You just saved a bro, thanks man

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

    Thank you for the short on sweet tutorial!

  • @addubs5485
    @addubs5485 4 роки тому +2

    PLEASE HELP!!!! When I do the numbers in the slider control, numbers like 600 convert into 60, 130,000 converts into 130. Why is it ding this/??

    • @pengepul_upil
      @pengepul_upil 3 роки тому

      Math.round(effect("Slider Control")("Slider")).toFixed(60)

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

    thanks bro you're a gem :)

  • @Mightea
    @Mightea 7 років тому +1

    Any idea how to make the numbers round to nearest 10 or 100?

  • @จ๊ะจ๋า-ฎ2ณ
    @จ๊ะจ๋า-ฎ2ณ Рік тому

    OMG this actually worked !

  • @GCKteamKrispy
    @GCKteamKrispy 4 роки тому

    Awesome man. I even learned about shadows!

  • @Charly_Dominguez
    @Charly_Dominguez 3 роки тому +1

    Hi! one question, is possible to make with percents? Thanks!

  • @haliebryer9969
    @haliebryer9969 3 роки тому +1

    Can you adjust it so that it can count up by a certain number? Say, 1,000? I need to get from $0 to $120,000,000 in a very short video so counting by 1 will make the numbers almost unrecognizable since they would be moving so fast. Thanks!

  • @AhmedMohamed-lf1dh
    @AhmedMohamed-lf1dh 4 місяці тому

    I watched this video 7 years ago to learn how to do it THX

  • @tommy622222
    @tommy622222 3 роки тому

    You're so funny. XD I can't tell if you love or hate doing these tutorials but either way it's hilarious.
    Thank you for this awesome tutorial!

  • @Seiferus
    @Seiferus 8 років тому +1

    What if, rather than rounding the number, I wanted to have it only go up to a certain decimal place? Like what if I wanted to go from a number like 4.7 up to 8.5 for example? And what if I wanted to have it sort of blur through the numbers as it counts up? Got any suggestions for how I could do that?

    • @Niyoriety
      @Niyoriety 8 років тому

      Seiferus try using motion blur

  • @ivann1n
    @ivann1n 5 років тому

    Incredibly worthy! Thanks from Mexico

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

    That's awesome man! Thanks so much!

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

    I have a question. How do you make it change colour/font when it reaches a certain number?

  • @cfldriven
    @cfldriven 5 років тому

    I learned something. THANK YOU! To the point and painless.

  • @DeBuDDi
    @DeBuDDi 2 роки тому

    speed can be slow or not??
    did someone have source code of number count frm 1 - 1.000.000 with slow speed count??

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

    So simple and easy. Thanks!

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

    Thanks my man, that did a number!