Animate Numbers in After Effects - How to add commas, decimals & symbols

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

КОМЕНТАРІ • 454

  • @review_maniac
    @review_maniac Рік тому +31

    Protect this man at all costs.
    Thank you so much 🙏

  • @elevic6293
    @elevic6293 10 місяців тому +187

    num = effect("Slider Control")("Slider").value.toFixed(0);
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)
    THIS IS THE ONE THAT WORKED FOR ME.

  • @AchishkaNawagamuwa
    @AchishkaNawagamuwa 7 місяців тому +2

    Mate, You are a lifesaver. This is the most simplest, on point, easiest to understand video I saw regarding this. Thank you 3000! ❤

  • @stephanez
    @stephanez 10 місяців тому +2

    Who is this Guy actually ? The best teacher ever, no one of the best he is so humble 😁

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

    THIS IS THE BEST TUTORIAL! on this subject that I've seen, Thanks man

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

      I struggled with this effect for a while, so I wanted to make one that delivers everything you/ I needed. Thanks for the kind words :)

    • @tom93.1
      @tom93.1 9 місяців тому

      100% completely agree

  • @dkamhaji
    @dkamhaji 11 місяців тому +12

    mine gets [object Property] when I start this expression - I just added a slide to type. pasted code into source text, hilghted value and pickedwhiped the slider and got that.

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

      Same here

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

      keep watching... adding .value.toFixed(2) fixes it

  • @caimundo
    @caimundo 2 місяці тому +1

    Your teaching style is great. One of the best tutorials i've watched.

  • @nicklaytonUK
    @nicklaytonUK 4 місяці тому +2

    It's marvellous. My only problem is that the numbers jump around as and when 'slimmer' give way to 'fatter' digits and yet I can't see that on your examples so a bit stumped. Found it. It's ok, for anyone else who gets stumped just change to a font that works.

  • @elricardonoart-fr6qt
    @elricardonoart-fr6qt 8 місяців тому

    You saved my life dude, thanks, the only video that mentions the point instead of comma!

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

    Saving as a preset is a life saver hack bro, this saves a lot of time. Thank you so much for creating these awesome videos, plz keep making such cool videos.

    • @topeanifalaje9583
      @topeanifalaje9583 8 місяців тому

      Hi @AliEdits345 do you know of any tutorial I can watch in order to learn how to save this as a preset? I find myself coming back to this video anytime I want to animate a complex number counter in After Effects 😂😂

  • @S3Xier
    @S3Xier 5 місяців тому +2

    This is it. This is, functionally, the best ae tutorial I've ever come across

  • @trimpsuz
    @trimpsuz 11 місяців тому +3

    To make the commas work with numbers that have 4 or more decimals you can edit the expression like so:
    num = effect("Angle Control")("Angle").value.toFixed(4);
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    num = addCommas(num.toString().split('.')[0]) + "." + num.toString().split('.')[1];
    "" + num + "";
    This will only add commas to the whole numbers and the decimals will stay as they are, text in front and behind can be added inside of the quotation marks on the last line.

  • @tegolley
    @tegolley Рік тому +14

    You're only one video away. this one got me super motivated ... thanks man

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

      It's so true :) You just need that one. Thank you so much for the super!!

  • @SidaliYahiaBoukhetala
    @SidaliYahiaBoukhetala 28 днів тому +1

    In other videos i had to go through testing on the expression myself to get things done, here we got all the sauce lol thanks man

    • @Validation
      @Validation  25 днів тому

      That was my goal :) happy to hear it helped. Also I have found a new technique to get this effect and it's even easier! Video coming soon :)

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

    Simple and clear explanation, very useful for me.
    Thank you for your sharing.👍

  • @TertiaryAccount-t7h
    @TertiaryAccount-t7h Рік тому +8

    Hey,
    After copy-pasting the expression and thereafter highlighting value and parenting it to the slider control effect, why is it showing [OBJECT PROPERTY] in place of the text in the preview screen?
    Can anyone help me out with this?

    • @Validation
      @Validation  Рік тому +9

      I saw this in one of ukramedia's videos. The one in my description I believe... If you add .value after the slider or angle control part it should work. Let me know if it does help

    • @Mark-yr2gi
      @Mark-yr2gi Рік тому

      @@Validation Thank you sir, I can confirm, that made it work. I also got the object property text, but it worked. Thanks mate, I subbed, great video keep it up.

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

    You actually explain everything perfectly and even tell us how to add text within the code. This was exactly what I have been searching for, a simplistic countdown for the next 40 days. Thank you so much for your help

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

    This is amazing. Just watching to see whether this can be adapted for Apple Motion at the moment!

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

      Thank you! Yeah, not sure with apple motion or other software at the moment. Hopefully there is a solution

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

    In a sea of crap, you are the golden needle of clarity. Thank you sir!!

  • @enlightened_youth
    @enlightened_youth 8 місяців тому

    Thank you man.
    You literally answered all the questions.

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

    You are an inspiration man! The way your videos are crafted, the pacing, your delivery, the music, It made for such a great learning experience.

  • @GB-ot1eo
    @GB-ot1eo 2 дні тому

    Absolutely awesome man thanks 🙏🏻

  • @wilhelmk4978
    @wilhelmk4978 Рік тому +3

    Your AE tutorials are some of the best out there, keep up the great work bro you deserve way more subscribers and views. Stay with it man 🙌🏼

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

    god bless you ! this was thew most useful tutorial ive ever seen !

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

    Thank you so much! Been looking for a way to make this effect for a long time now!

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

    I needed this for a project! thanks for this! very easy to follow through and everything I needed to know was all in this one video! Great job!

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

      Hello. Do you know what pre-video sound effects are? Thanks a lot

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

    This guy is definitely a hero

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

    Hellooo so cool thank you ! Do you know how to transform the 2.0 in just "2" ??? i would like to have : "2" "2.1" "2.2" etc and NOT "2.0" "2.1" "2.2" etc ^^

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

    So helpful I was looking for this exact effect for so long.

  • @iCanDoThatLOL
    @iCanDoThatLOL 26 днів тому +2

    Do the numbers go crazy for anyone else and not increase in normal increments?

    • @Validation
      @Validation  25 днів тому

      Did you use the entirety of the code? But have no fear, I'm making a brand new tutorial on this effect with an even easier method :)

    • @itsfarloss
      @itsfarloss 24 дні тому

      Having the same problem here, while Im trying to animate numbers they just go crazy!

  • @MrJKut
    @MrJKut 10 місяців тому +6

    What kind of sound effect you are using for this effect?

    • @comp
      @comp День тому

      @Validation said "
      first one from artlist: Ni Sound - Funny Game UI - Ticker Counter
      and the second was from envato: Ticker Tape Machine Rhythmic Clatter "

  • @JoseTheRover
    @JoseTheRover 8 місяців тому

    You're honestly the MAN for this!

  • @vba2469
    @vba2469 8 місяців тому

    The angle!! The angle parameter! Yes thank you so much for this!

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

    Super helpful! Thanks so much for the clear explanation! That said- have you ever thought to add placeholder zeros into the counter? If so how would you do that without messing up all the other lovely bits of code? (For example the number would read 000,045 or some such and count up from there?)

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

    great video! highlights everything that you possibly need to know, keep it up

  • @meltrax1
    @meltrax1 8 місяців тому

    Best tutorial out there for this effect hands down, thanks a lot!! Can you make a tutorial on how to blend your numbers/text/anything with your video? Like the examples you have on the video here, that will help a lot! Keep the great videos quality. Subscribed

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

    Thanks man! Quick, Easy, Perfect Guide.

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

    Extremely helpful and easy to follow! I'm definitely subscribing!

  • @prismwing
    @prismwing 8 місяців тому

    I don't have a video in progress that needs this, but I know it's inevitable so I'm gonna get this preset ready immediately :D

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

    Great tutorial ... Thank u.. i learned to make own preset

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

    The result I got was the numbers counting up were very large numbers, like in the beginning with the decimals, however now they have commas instead.

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

    You are the best. Going to use this on my maps animation lol!

  • @goooys4173
    @goooys4173 4 місяці тому +18

    sound effect used ?

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

      Have u found it?I rlly need it now,can u share with me if u did so

    • @GamerLevel54
      @GamerLevel54 25 днів тому

      I also want it

    • @GamerLevel54
      @GamerLevel54 25 днів тому

      I also want it

    • @goooys4173
      @goooys4173 25 днів тому

      @@xqvalie nah bru, i didnt find it.

    • @comp
      @comp День тому

      @Validation said
      "first one from artlist: Ni Sound - Funny Game UI - Ticker Counter
      and the second was from envato: Ticker Tape Machine Rhythmic Clatter "

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

    Perfect tutorial. Thanks man!

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

    Very helpful thank you so much! What's the sound effect in the first clip of the video? Can't find it anywhere

    • @comp
      @comp День тому

      @Validation said
      "first one from artlist: Ni Sound - Funny Game UI - Ticker Counter
      and the second was from envato: Ticker Tape Machine Rhythmic Clatter "

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

    Thanks a lot, man
    This video helped a lot like all the other videos

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

    this is really really helpful brother thanks!

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

    Thanks bro for this tutorial this number effect is very helpful for my client , can you make a tutorial for Devin style editing
    ( very very thanks for that )

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

    I would like to add to the scenario that if you wanna always show 2 (or more, only need to change the number that x length is less than) digits of number when counting down (for example: 1 -> 01), this code would help
    x=Math.round(effect("Slider Control")("Slider")).toFixed(0);
    while (x.length < 2) x = "0" + x; x

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

    Thank so much. This video was very helpful for me

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

    Hey! So i just tried this, copied the expression and everything, but as soon as i made keyframes for the slider, it still started acting all crazy and showing crazy numbers and decimals. DO you have any suggestions? Should I check something to see if i did it wrong somewhere?

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

    Great video with really valuable information. Thanks!

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

    Amazing content man, happy that there are people like you helping fellow creators like myself 👍

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

    simple and very helpful, thanks

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

    Excellent video, thank you very much sir.

  • @LucianaFranca93
    @LucianaFranca93 8 місяців тому

    This is so helpful!! It has worked for most of the symbols I add to my projects ($,%, etc) except 1, which is when I try to use ft²... the number 2 doesn't go up at all, would you have a tip for this situation?

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

    I was looking for this. Thanks, man!

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

    Thanks for this animation. Awesome

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

    Blessings to you sir! This was an amazing video! Thank you!

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

    This is such a great video, you are truly a lifesaver.

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

    my counter effect doenst end up showing in the end result of rendered video, what do I do? can't find any solution

  • @GB-ot1eo
    @GB-ot1eo 2 дні тому

    Also what's the soundtrack list for this video pls or only the 1st and 2nd if possible

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

    Yow! Are you reading my mind? HAHAHA i've been looking for this tutorial and mg in envato and motion array. Thanks a lot. Been looking for 2 days now.

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

      I did indeed read your mind haha

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

      @@Validation That's twice in a row haha. First ali abdaal tutorial and now this.

  • @alex.sensei
    @alex.sensei Рік тому +2

    Thanks I was looking for it ! We want more cool ae effect tutorial 😊

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

    Bro, thanks for the tutorial🙏Super useful

  • @georgebuliba9481
    @georgebuliba9481 29 днів тому +1

    You are the best bro

  • @Mitch-L-b9z
    @Mitch-L-b9z 2 місяці тому

    I'm wondering, if I wanted to add text after, but also reduce the text size/weight for example with '100km' having a smaller 'km' text, how would I do this and still keep it following the number text as it gets bigger?

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

    Thank you so much... this is a game changer

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

      You’re very welcome! Love this effect so much myself

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

    Thank you so much for the tutorial🙌

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

    Hey Bro! Greetings from Brazil! I loved your tutorial! It's a very important content. Is the best tutorial about this that I found. Thanks very much for doing it.

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

      You’re so welcome! & thanks for your kind words :)

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

      ​@@Validationbro can you drop the sfx used in the timer

  • @leemingdesign9577
    @leemingdesign9577 4 місяці тому +1

    Hi I want to use this for a square foot measurement, so my questions is, how can this be modified in order to make the '2' on the end, superscript?
    IE: 1,250 ft2
    This is my current expression but the 2 is too big:
    num = effect("Slider Control")("Slider").value.toFixed(0) +"ft2";
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)

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

    best tutorial i've ever seen

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

    Amazing Bro.. 🤗
    In very easy step, u did it👌
    Love from Pakistan 🇵🇰

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

    hi! I have a problem with your tutorial. :(
    Each time I past this code and do connection between "value" and "Slider Control" I got an [object] instead of my numbers. what shall I do than?

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

      go to project setting then change script from legacy to java script this will fix your problem

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

    Great video! I used some of your tricks from the Ali video on my last short!

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

      That's awesome man I'll be sure to check them out :)

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

    Beautiful. Can someone tell me the effect of the background fill of the map at 00:07. What do you call it? how do i seach that animation on youtube?

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

      Thank you :) That was made using an ink transition. Basically you find some black and white footage of an ink spread. Then use that as a luma mask (which is under track matte options in after effects or premiere pro). Maybe I'll make a quick video on it...

  • @theadirchallenge
    @theadirchallenge 7 місяців тому +4

    Where do you get the sound effect for the numbers counting

    • @comp
      @comp День тому

      @Validation said
      "first one from artlist: Ni Sound - Funny Game UI - Ticker Counter
      and the second was from envato: Ticker Tape Machine Rhythmic Clatter "

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

    thank you a lot, this video is amazinggggg

  • @user-jj9tx3ir9w
    @user-jj9tx3ir9w 7 місяців тому

    Perfect, thank you so much!

  • @imamansaifi
    @imamansaifi Рік тому +3

    Which sfx you used in this number counting effect please tell me the name

    • @Validation
      @Validation  Рік тому +5

      I used two different sounds, they took me a while to find haha first one from artlist: Ni Sound - Funny Game UI - Ticker Counter and the second was from envato: Ticker Tape Machine Rhythmic Clatter
      I'll provide links to both in the videos description :)

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

    followed it once and it worked, now it still leaves me with crazy decimal place numbers

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

      update: this happens if your original text has decimal places in it

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

    Thank you, sir, This is a good Tutorial!

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

    Keep up the good content man, we appreciate it!

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

    Really Love Your Content ,

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

    What is the SFX you used for the number counter?

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

    Thanks for this. Is there a way to add a space between the numbers instead of a comma or period?

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

    Question: How do you do this in different number bases? How do you animate numbers in binary?

  • @purplesongs
    @purplesongs Рік тому +4

    what's that shutter sound effect that you have used in this video?
    thanks for creating such amazing video ❤

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

      I was wondering the same thing, did you ever find a similar sfx for that?

    • @purplesongs
      @purplesongs 4 місяці тому +1

      @@M00glemuffins Bro it's the cards stacking or shuffling sound effect.

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

    Its very cool! Thank You!

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

    can you give the counting sound effects in the description thanks

    • @comp
      @comp День тому

      @Validation said
      "first one from artlist: Ni Sound - Funny Game UI - Ticker Counter
      and the second was from envato: Ticker Tape Machine Rhythmic Clatter "

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

    Thumbnail is amazing

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

      Thank you! :D For a simple design, I still spent a fair bit of time on it!

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

    When I use it to count to 49 mil it displays wayyy more than that and then back to 49 mil its like I need some help man

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

    Thank you for figuring this out bro! Cheers! 🥂

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

    trust me.. this is everything 🥰😇

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

    num = effect("Angle Control")("Angle").value.toFixed(0);
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)
    PRE CONNECTED TO "ANGLE"
    This dude saved us so much headache
    🤕

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

    how can i get the counting number sfx? you used

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

    What a G! We're only one video away brother. Cheers.

  • @Tecmana
    @Tecmana 8 місяців тому

    Nice Trick bro ❤

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

    nice man, thankyouuuu so much its very help me

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

    Thank u this was of great value!