How to Add Automatic Commas to Numbers in After Effects

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 241

  • @ukramedia
    @ukramedia  3 года назад +2

    Here is a quicker way to get the same result: ruclips.net/video/HQCBkOjJ400/видео.html

    • @tubelator
      @tubelator Год назад +1

      yes but this is free :))

    • @haydenroams
      @haydenroams 7 месяцев назад

      Your website is broken I cant add anything to cart

  • @fully0fficial
    @fully0fficial Год назад +3

    In our darkest hours, you are the light!

  • @Zinriusminazen
    @Zinriusminazen Месяц назад +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)

  • @arnenoot3080
    @arnenoot3080 3 года назад +1

    Thank you for your no-nonsense, clear to understand, no bullshit bro-step music blaring through the voice-over, tutorial. It's quality, and I appreciate it.

    • @ukramedia
      @ukramedia  3 года назад

      :-) I'm glad you found this useful, Arne.

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

  • @Cyranek
    @Cyranek 3 года назад +9

    thank you for putting the function in the description

  • @Zinriusminazen
    @Zinriusminazen Месяц назад +1

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

  • @prielhackim
    @prielhackim 4 года назад +2

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

  • @Itziasl
    @Itziasl 3 года назад +2

    THAAAANKKKKSS i found many tutorials but this one actually worked

  • @hbartholomae
    @hbartholomae 3 года назад +1

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

  • @MAXEN3D
    @MAXEN3D 3 года назад +1

    I swear I like you man >> You the Best

  • @astroross
    @astroross 3 года назад +2

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

  • @manumercuri7207
    @manumercuri7207 Год назад +1

    This saves me every time! Thanks!

  • @rubensangelo1646
    @rubensangelo1646 11 месяцев назад +1

    genius, 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)

  • @rinovbeats
    @rinovbeats 3 года назад

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

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

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

  • @LongyTV
    @LongyTV 4 года назад +1

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

  • @marcelamaldonado
    @marcelamaldonado 4 года назад +3

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

  • @ashleemetcalfe1227
    @ashleemetcalfe1227 2 года назад

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

  • @dimchegcom
    @dimchegcom 3 года назад

    This expression is freaking gold! Thank you!

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

  • @daneclassen5366
    @daneclassen5366 3 года назад +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.

  • @aaronsherman1789
    @aaronsherman1789 3 года назад

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

  • @jchenmotiondesign
    @jchenmotiondesign 3 года назад +1

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

  • @SaraRavich
    @SaraRavich 3 года назад +1

    OMG the only script that helped, thank you

  • @simdhertefelt
    @simdhertefelt 3 года назад +1

    Wonderful! Works like a charm. Thanks so much.

  • @Filkers
    @Filkers 3 года назад +1

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

  • @aqueminteressarpossa3445
    @aqueminteressarpossa3445 5 лет назад +2

    king regards from Brazil, you are the BOSS

    • @ukramedia
      @ukramedia  5 лет назад +1

      Thank you for your kind words!

  • @Williod
    @Williod 2 года назад

    Thank you, man.

  • @rrrrodddd
    @rrrrodddd 2 года назад +1

    AMAAAZING, thank you!!

  • @maxhaller6463
    @maxhaller6463 2 года назад

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

  • @lv0myc
    @lv0myc Год назад +1

    Thank you so much!

  • @erintoews7617
    @erintoews7617 3 года назад +1

    JUST WHAT I NEEDED! Thanks so much.

    • @ukramedia
      @ukramedia  3 года назад

      Happy to help, Erin!

  • @chrisselvarajah6440
    @chrisselvarajah6440 4 года назад +1

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

  • @AnasAlhosni
    @AnasAlhosni 2 года назад

    you're the best. thank you.

  • @chiragparmar1964
    @chiragparmar1964 2 года назад

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

  • @makewavesmedia
    @makewavesmedia 5 лет назад +1

    Just saved me HOURS. Thank you!!!

  • @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!

  • @Animotion1
    @Animotion1 2 года назад

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

  • @espertron
    @espertron 3 года назад +1

    You beautiful human, thank you for this!

  • @user-vr7kf9ri4e
    @user-vr7kf9ri4e 2 года назад

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

  • @jordantaylor3d
    @jordantaylor3d 2 года назад

    Thanks for sharing!

  • @petertaylorarts
    @petertaylorarts Год назад

    So clear and informative. Fantastic teacher! Thanks

  • @nisianglian6263
    @nisianglian6263 4 года назад +1

    you save my day man

  • @danielkweon3686
    @danielkweon3686 4 года назад

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

  • @liucanjung8183
    @liucanjung8183 4 года назад

    your video is the answer to my problem! thanks man

  • @daviddmotion
    @daviddmotion 5 лет назад

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

  • @Clarkjr33
    @Clarkjr33 4 года назад +1

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

    • @ukramedia
      @ukramedia  4 года назад

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

  • @ToddDever
    @ToddDever 2 года назад

    Just what I needed. Thanks!!!!!

  • @UsamaA-xg7th
    @UsamaA-xg7th Месяц назад

    Thanks for this

  • @Josh-wu7kc
    @Josh-wu7kc Год назад

    Fantastic tutorial - thank you!!!

  • @jonagreyphoto
    @jonagreyphoto 3 года назад +1

    Lifesaver, thank you!!

  • @petraa4533
    @petraa4533 3 года назад +1

    You're the best, thank you!!

  • @JustinEspejo
    @JustinEspejo Год назад

    this was very helpful! thank you!

  • @vishal1061972
    @vishal1061972 2 года назад

    Thank you so much. Excellent tutorial.

  • @astridhiles6892
    @astridhiles6892 4 года назад +1

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

  • @DannyJongezoonN3RDCULTUR3
    @DannyJongezoonN3RDCULTUR3 5 лет назад +1

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

  • @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!

  • @shacharhakim6443
    @shacharhakim6443 Год назад

    thanks man!!

  • @dwisuputra9157
    @dwisuputra9157 3 года назад +1

    THANK YOU!

  • @fogsand5399
    @fogsand5399 3 года назад

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

  • @VolkanDalyan
    @VolkanDalyan 3 года назад +1

    Thank you for this great video.

    • @ukramedia
      @ukramedia  3 года назад

      Glad it was helpful!

  • @YouWantPizzazz
    @YouWantPizzazz 2 года назад

    Awesome tutorial, thanks for your help!

  • @TheVariableDesign
    @TheVariableDesign 3 года назад +1

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

  • @hvaranhvaran
    @hvaranhvaran 2 года назад

    Thank you! You're da man!

  • @pipoko4077
    @pipoko4077 3 года назад

    I LOVE YOU !!

  • @CreditForForeigners-pt9by
    @CreditForForeigners-pt9by 7 месяцев назад

    great stuff. thx

  • @MyBassick
    @MyBassick 4 года назад +3

    Thank u very much! this was the only way that i found to make an counter for Euros with german "." and "," (They write numbers like that 3.394,29 € ). Had only to add another .replace(".", ",") before
    num = effect("Einstellungen für Schieberegler")("Schieberegler").value.toFixed(2);
    function addCommas(num) {
    return num.toString().replace(".", ",").replace(/\B(?=(\d{3})+(?!\d))/g, ".");
    }
    r = addCommas(num) +"€"

    • @ThambaRamachandran
      @ThambaRamachandran 2 года назад

      Thanks a lot :). Finally found what I want for the EUROs in the comments section.

  • @archangelz816
    @archangelz816 4 года назад +1

    Thank's mate.

  • @marleentrnkuijf624
    @marleentrnkuijf624 3 года назад +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)

  • @imabhishek27
    @imabhishek27 4 года назад +1

    Thanks bro... u are awesome

  • @EclipseMall
    @EclipseMall 3 года назад

    Thanks, M8, very detailed!

  • @decoynotreal2114
    @decoynotreal2114 3 года назад

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

  • @joanceamon4227
    @joanceamon4227 Год назад

    Thank a lot Sir

  • @leonardotdias
    @leonardotdias 4 года назад +2

    This is amazing! I really have to learn expressions.

  • @SeunJubril
    @SeunJubril 3 года назад +1

    Thank you!!!!!!!

  • @cauesfernandes
    @cauesfernandes 4 года назад +1

    Thanks! helped me a lot

    • @ukramedia
      @ukramedia  4 года назад

      Awesome! Thanks for watching it!

  • @yousefalizadeh4892
    @yousefalizadeh4892 2 года назад

    Thank you! This is so useful! 😊

  • @craigharris8482
    @craigharris8482 4 года назад

    Awesome video, thanks for the code!

  • @MrGray512
    @MrGray512 4 года назад +1

    Great tutorial!

  • @RahulKashyap-zd8ho
    @RahulKashyap-zd8ho 3 года назад +1

    Appreciated.............

  • @TheHoleshoes
    @TheHoleshoes 3 года назад

    super helpful! thanks!!

  • @KhalilCh
    @KhalilCh 3 месяца назад

    Thank you

  • @robertvoy
    @robertvoy 5 лет назад +1

    Very nice! More useful expression tutorials like this please :)

  • @florence9476
    @florence9476 3 года назад

    Thanks so much soooo helpful!

  • @rsr_10
    @rsr_10 4 года назад +1

    Thank you so much!! Totally love your channel

  • @cuerposquimicos
    @cuerposquimicos 3 года назад

    buenisimo chamigooooo!! gracias

  • @nestormenjivar7331
    @nestormenjivar7331 3 года назад

    You deserve more views, the people who watch the video and didn't give like, have the pichula chiquita

  • @matheus1397
    @matheus1397 5 лет назад +1

    I was trying to do exactly that the other day and didnt know how, thanks!

  • @johnotimi6813
    @johnotimi6813 3 года назад +1

    Cheers Mate!

  • @sarosong
    @sarosong 4 года назад +1

    Thanks so much, very much appreciated and very helpful, ;-)

  • @hectorbonilla5555
    @hectorbonilla5555 3 года назад +1

    Thanks

  • @RyanMcClure
    @RyanMcClure 4 года назад +2

    Great tut but Centre Anchor point on Mac is Command + Control (not Option) + Home.

  • @hartonogunawan2939
    @hartonogunawan2939 4 года назад

    Thanks man! It Works!

  • @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!

  • @TarunGameArts
    @TarunGameArts 4 года назад +3

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

  • @massashihosono
    @massashihosono 4 года назад

    Love ya... saved the day!!

  • @Jkbucd13
    @Jkbucd13 3 года назад

    game CHANGER. thank you!

    • @ukramedia
      @ukramedia  3 года назад

      You should check out my new After Effects tool that does that quicker: ruclips.net/video/HQCBkOjJ400/видео.html