How to Add Automatic Commas to Numbers in After Effects

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

КОМЕНТАРІ • 241

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

    Here is a quicker way to get the same result: ua-cam.com/video/HQCBkOjJ400/v-deo.html

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

      yes but this is free :))

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

      Your website is broken I cant add anything to cart

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

    In our darkest hours, you are the light!

  • @madebydbm
    @madebydbm 9 днів тому +1

    Just what I needed and well explained - thanks!

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

    Came for the commas, left with 3 simple and useful shortcuts I never knew for 5 years

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

    For people having issues, here's the code you put in "Source Text" after you link it to the slider control ( if you renamed Slider Control to NUMBER like in the video then just change that part ). This also includes the bit where it gets rid of the decimals.
    num = effect("Slider Control")("Slider").value.toFixed();
    function addcommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addcommas(num)

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

    I swear I like you man >> You the Best

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

    THAAAANKKKKSS i found many tutorials but this one actually worked

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

    Thanks! Have been looking at heaps of blogs and this video was the most helpful.

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

    thank you! best one teaching the comma in the counter yet!

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

    Another day, another project I need to google this video for.

  • @Cyranek
    @Cyranek 3 роки тому +9

    thank you for putting the function in the description

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

    This saves me every time! Thanks!

  • @schoolofmotion
    @schoolofmotion 5 років тому +26

    Excellent use of scripting! Great video, guys!

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

      Thank you, SOM! You guys are awesome!

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

      When 2 of the best teachers collide

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

    LATES CODE:
    num = effect("Slider Control")("Slider").value.toFixed();
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)

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

    This tutorial is 1000% better than I've looking for.
    I just needed this coma separator. But at the same time I learned some new small features. Like "press Enter to rename", or ctrl+alt+home to center the pivot point etc.
    Thank you! This tutorial is super useful to me!

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

      Звернув увагу, що ви українець. Особливо приємно бачити якісні відео зроблені українцями ;)
      Дякую! Туторіал дійсно крутий.

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

    YOU ARE THE BEST THANK YOU. Always short and sweet! Keeps me coming back again and again for help.

  • @prielhackim
    @prielhackim 5 років тому +2

    you are the only one online know what is doing-----thanks you saved me

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

    Awesome tutorial, when I try and pick-whip the source text to the slider control, it erases the code in the source text expression box and inserts effect("Slider Control")("Slider"). I can't seem to integrate the code to auto-insert commas with the counter. What's going on?

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

    This expression is freaking gold! Thank you!

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

    Perfect. Lots of small details make this far more valuable than just a counter builder.

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

    just amazing that the whole video is the solution to all my headache! you're a legend!!

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

    JUST WHAT I NEEDED! Thanks so much.

  • @우주-n5y5v
    @우주-n5y5v 2 роки тому

    Thank you very much for your knowledge! I'm honored to find this way :)

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

    Great tutorial! But what if I need only one number after comma and more numbers before? Like this - 325.1 I tried editing the expression, but nothing good happened. Could you help me? Thank you!

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

    thank you so much buddy ....for helping me ....this is what i was searching for

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

    Brilliant! expression worked as intended just copy and pasting! thanks

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

    Wonderful! Works like a charm. Thanks so much.

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

    So clear and informative. Fantastic teacher! Thanks

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

    Great tutorial! Lots of little knowledge gems woven into this into the main task! Thank you!

  • @Josh-wu7kc
    @Josh-wu7kc Рік тому

    Fantastic tutorial - thank you!!!

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

    Super tutorial. Helped me in a project I am working upon right now.

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

    Just what I needed. Thanks!!!!!

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

    Omgosh amazing tip! Thank you so much for this. Great work!

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

    your video is the answer to my problem! thanks man

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

    Thank you so much. Excellent tutorial.

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

    I tried Some other tutorials for this, And they didn't work. But You are Awesome! Thank you.

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

      Glad I could help. Thanks for watching, Majid!

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

    You are so concise and get right to the point. Thanks!

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

    Great video. I'm always reminded of how much deeper my knowledge of AE should be. Also, for newer versions of AE, they changed the name of the "Numbers" effect. This is how mine is set up and working now.
    num = effect("Slider Control")("Slider").value.toFixed();
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)

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

    How does this work when you use a smaller number like 17,6 in the expression slider? I want to count from 23 to 17,6 but the "." doesn't get replaced by the ",". Only when using bigger numbers, it does work. Any help would be much appreciated!

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

    Excellent tutorial. Straight to the point and goes over the 3 major elements I needed in the counter I am creating. I liked it so much I am commenting about it and I never do that.

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

    Wow i found exactly what i was looking for and most easy way possible to do it. Keep up the good work !!

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

      Glad to hear that! Thanks for giving it a try!

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

    this was very helpful! thank you!

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

    Brilliant! Very useful for our dynamic templates. Thank you again.

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

    AMAAAZING, thank you!!

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

    Great tip!
    How would you do to avoid this width flickering when number changes?

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

    Great tutorial! Like many others, it helped me out in a pinch for a project. Thank you for posting!

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

    It was very useful for me, just replaced the commas for dots. Thank you!

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

    This is EXACTLY what I needed to know!! Side note - is there any way to use expressions to bump up the scale to add emphasis when the numbers pass a certain point? For example, every 100k the text would scale up slightly? Thanks!

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

    This expression really helped with an animated graph I needed to make for a project.

  • @martinsnelaudioenhancement
    @martinsnelaudioenhancement 4 роки тому +20

    How do you work with number greater than 1000000?

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

      Hi, i found the simple easy way is to doublicate the numbers, for example:
      num = effect("Slider Control")("Slider").value.toFixed() * 2;
      function addCommas(x) {
      return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
      }
      addCommas(num)
      ------------------this example will give you 2 million as a maximum value---------------------------
      and you can use this method to get any number you want,
      num = effect("Slider Control")("Slider").value.toFixed() * "HERE YOU CAN DOUBLICATE WITH ANY NUMBER YUO WANT";
      so again you can just CHANGE the value to get more results, THANK'S.

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

      @@ibrahimcapitolestate5600 this didn't work.

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

      Use a point control instead of a slider control.

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

    Hello Sergey,
    I like your channel and what you do! I learned a lot ;)
    But I have one question. How do I can format a numbers like 65.550,4
    Provided expression can replace "." with a "," only in the tens thousands. Thus final result can be 65.550.4 or 65,550.4
    But I need 65.550,4 (first a point, then a comma).
    I'm trying to play with an expression, but still unsuccessful ;(
    I will be happy if you show how to do this, or maybe provide an expressions.
    Thanks

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

    YO! This was super helpful for a current project. Appreciate the time and effort man!

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

      I'm glad you found it useful, Joshua. Thanks for watching it!

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

    Awesome tutorial, thanks for your help!

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

    Will I be able to export this with a transparent background? Thanks!

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

    OMG the only script that helped, thank you

  • @aqueminteressarpossa3445
    @aqueminteressarpossa3445 5 років тому +2

    king regards from Brazil, you are the BOSS

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

      Thank you for your kind words!

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

    This was hella helpful! Thank you very much! Keep up the amazing work!

  • @marleentrnkuijf624
    @marleentrnkuijf624 4 роки тому +9

    Hi!
    Thank you for this tutorial. Together with some tips and other tutorials, I got what I wanted with the code beneath. With "Number FUNNEL 1" being the name of the slider. The only problem is, I cannot seem to go up more dan 1.000.000 (one million). I'm no coder and a bit new in After Effects, but I really need my number to go up higher. Any tips on how to easily add something to my code to make the number go further up and not having to change all the work I've already done? Thanks for the help!
    num = "€ " + effect("Number FUNNEL 1")("Slider").value.toFixed();
    function addDots(x) {

    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
    }
    addDots(num)

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

    Thank you so much!

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

    Thank you for this great video.

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

    You beautiful human, thank you for this!

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

    wonderful ... thank you so much ! very clear :)

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

    Also pressing Enter in the numberpad works to get out of Type mode ;) Great tutorial!

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

    Thank you! You're da man!

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

    Thank you so much for this! I use this expression with Slider control : )

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

    Just saved me HOURS. Thank you!!!

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

    Awesome content. Very helpful. Thanks for taking the time to put this together and share. Love it.

  • @michaelabouhaidar38
    @michaelabouhaidar38 5 років тому +7

    I would like to animate a number greater than 1,000,000. How do we do that? I tried adding value.toFixed(2) to have 2 decimal numbers, then I multiplied the result by 100. I got my counter working for numbers above 1,000,000 but unfortunately the number sometimes goes crazy with a lot of decimals. Any thoughts?

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

      num = value.toFixed(2)*100;
      num1 = Math.round(num)
      function addCommas(x) {
      return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
      }
      addCommas(num1)

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

      link the value to a Point Control effect instead of a Slider Control effect

    • @ИванИванов-к7ю8о
      @ИванИванов-к7ю8о 4 роки тому

      @@twotwoasjjuh1025" * 100" thing works great!!! thanks a lot

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

      @@twotwoasjjuh1025 Thank you!!

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

      A great thanks man !

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

    Awesome video, thanks for the code!

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

    Great video, but what do I do if I need the number to be 3,679,234.27? :/

  • @Oussama-yb9ck
    @Oussama-yb9ck Рік тому

    hello please is there i preset of that , cause i followed your steps and sadly didn't work for me in my version of after effect

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

    Thanks for sharing!

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

    Thank you! This is so useful! 😊

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

    genius, Thanks!!!

  • @Foreld-xi2in
    @Foreld-xi2in 4 роки тому

    Thanks for the tutorial. But I have a question. Each time a number adds a digit (from 9 to 10, from 99 to 100), the number is shifted. I changed the position of the anchor point to the center, but it didn't help. What to do? Help with advice, please.

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

    Hi, this is really helpful thank you. How would i add a '£' to the beginning of this to create a money amount?

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

      type + "£" after your expression

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

      @@bogd1741 that puts it at the end

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

    Hi, thank you, this is really helpful! I have a question: do you know a way to change automatically the font size of he thousands number only?

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

      yes.... use conditional statement and access the fontsize property after converting to string

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

    Thanks, M8, very detailed!

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

    Thank you, man.

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

    You're the best, thank you!!

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

    Lifesaver, thank you!!

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

    How do we get two commas like "6,24,800"

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

    you're the best. thank you.

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

    This was great! Is there any way to add also a symbol like $ at the end of the expression?

  •  3 роки тому

    Very good video! I have a doubt, I noticed that the accountant has a limit of 1 million, how do I increase this limit? I need 3 million to count the numbers.

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

    can u do a code for indian number system because we have different comma placings (1,00,000), so if u can help with that - Thank you in advance

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

    If I want to put a minus before the number, what should I do?

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

    How can I replace the commas for points . ?

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

    Great tutorial!

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

    Thanks so much soooo helpful!

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

    super helpful! thanks!!

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

    Thanks! helped me a lot

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

      Awesome! Thanks for watching it!

  • @leonardotdias
    @leonardotdias 5 років тому +2

    This is amazing! I really have to learn expressions.

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

    I'm using After Effects 2020. I'm trying to animate a slider from 1,000,000 to 10,000,000. But it wont let me go past 1,000,000. Any ideas for a workaround?

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

    Everytime I whip the number to the slider control it overwrites the code and it just doesnt work

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

    you save my day man

  • @소비요정이
    @소비요정이 4 роки тому

    Can you get rid of shaking (number) when the numbers go down?

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

    i came to learn one thing ended up learning ten, thanks a mil

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

    I love your videos, a question has a tutorial of the start logo animation?

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

    Thanks for this