How to Add Automatic Commas to Numbers in After Effects

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ค. 2024
  • In this tutorial, you will learn how to add automatic commas to numbers & sliders in After Effects using Expressions.
    Project File & Code: ukramedia.com/how-to-add-auto...
    Expressions Course: ukramedia.com/expressions
    Blender Course: ukramedia.com/blender
    CODE:
    num = value;
    function addCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    addCommas(num)
    LINKS:
    Ukramedia Website: ukramedia.com
    Shape Layers in After Effects Tutorial: • Shape Layers in After ...
    Ukramedia Podcast: ukramedia.com/category/podcast/
    Ukramedia Mentoring Group: / ukramedia
    ML3RD KIT - Bundle: www.ukramedia.com/ML3RD
    ML3RD KIT - Flat Style: ukramedia.com/product/modular...
    ML3RD KIT - Corporate Style: ukramedia.com/product/modular...
    ML3RD KIT Batch Duplicator: www.ukramedia.com/ML3RD
    Get Adobe After Effects and CC: clk.tradedoubler.com/click?p(...)
    Get Adobe CC Trial: clk.tradedoubler.com/click?p(...)
    Get Adobe CC Student: clk.tradedoubler.com/click?p(...)
    Find The Perfect Asset For Your Next Creative Project: clk.tradedoubler.com/click?p(...)
    LET’S CONNECT:
    Facebook: / ukramedia
    Sergei's Facebook Page: / sergeiprokhnevskiy
    Twitter: / ukramedia
    Instagram: / ukramedia
    Pinterest: / ukramedia
    Linkedin: / ukramedia
    TH-cam: / ukramedia
    Mailing Address:
    P.O. Box 621
    Huntersville, NC 28070
    *** MUSIC BY: VLAD SOLOKHA. Vlad is a family friend who is a very talented musician. You can reach out to him by going to his facebook at vlad.solokha....
    #AfterEffects #Expressions #MoGraph

ความคิดเห็น • 237

  • @ukramedia
    @ukramedia  3 ปีที่แล้ว +2

    Here is a quicker way to get the same result: th-cam.com/video/HQCBkOjJ400/w-d-xo.html

    • @tubelator
      @tubelator ปีที่แล้ว +1

      yes but this is free :))

    • @haydenroams
      @haydenroams 5 หลายเดือนก่อน

      Your website is broken I cant add anything to cart

  • @Cyranek
    @Cyranek 3 ปีที่แล้ว +9

    thank you for putting the function in the description

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

  • @astroross
    @astroross 3 ปีที่แล้ว +2

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

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

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

  • @chrisselvarajah6440
    @chrisselvarajah6440 4 ปีที่แล้ว +1

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

  • @DannyJongezoonN3RDCULTUR3
    @DannyJongezoonN3RDCULTUR3 4 ปีที่แล้ว +1

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

  • @jchenmotiondesign
    @jchenmotiondesign 3 ปีที่แล้ว +1

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

  • @ashleemetcalfe1227
    @ashleemetcalfe1227 2 ปีที่แล้ว

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

  • @Filkers
    @Filkers 3 ปีที่แล้ว +1

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

  • @danielkweon3686
    @danielkweon3686 4 ปีที่แล้ว

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

  • @hbartholomae
    @hbartholomae 3 ปีที่แล้ว +1

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

  • @TheVariableDesign
    @TheVariableDesign 2 ปีที่แล้ว +1

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

  • @rinovbeats
    @rinovbeats 3 ปีที่แล้ว

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

  • @Itziasl
    @Itziasl 3 ปีที่แล้ว +2

    THAAAANKKKKSS i found many tutorials but this one actually worked

  • @simdhertefelt
    @simdhertefelt 3 ปีที่แล้ว +1

    Wonderful! Works like a charm. Thanks so much.

  • @daneclassen5366
    @daneclassen5366 3 ปีที่แล้ว +1

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

  • @dimchegcom
    @dimchegcom 3 ปีที่แล้ว

    This expression is freaking gold! Thank you!

  • @leonardotdias
    @leonardotdias 4 ปีที่แล้ว +2

    This is amazing! I really have to learn expressions.

  • @fully0fficial
    @fully0fficial ปีที่แล้ว +2

    In our darkest hours, you are the light!

  • @petertaylorarts
    @petertaylorarts ปีที่แล้ว

    So clear and informative. Fantastic teacher! Thanks

  • @makewavesmedia
    @makewavesmedia 4 ปีที่แล้ว +1

    Just saved me HOURS. Thank you!!!

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

  • @user-vr7kf9ri4e
    @user-vr7kf9ri4e ปีที่แล้ว

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

  • @prielhackim
    @prielhackim 4 ปีที่แล้ว +2

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

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

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

  • @jonagreyphoto
    @jonagreyphoto 3 ปีที่แล้ว +1

    Lifesaver, thank you!!

  • @ToddDever
    @ToddDever 2 ปีที่แล้ว

    Just what I needed. Thanks!!!!!

  • @LongyTV
    @LongyTV 4 ปีที่แล้ว +1

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

  • @craigharris8482
    @craigharris8482 4 ปีที่แล้ว

    Awesome video, thanks for the code!

  • @erintoews7617
    @erintoews7617 3 ปีที่แล้ว +1

    JUST WHAT I NEEDED! Thanks so much.

    • @ukramedia
      @ukramedia  3 ปีที่แล้ว

      Happy to help, Erin!

  • @marcelamaldonado
    @marcelamaldonado 4 ปีที่แล้ว +3

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

  • @YouWantPizzazz
    @YouWantPizzazz 2 ปีที่แล้ว

    Awesome tutorial, thanks for your help!

  • @fogsand5399
    @fogsand5399 3 ปีที่แล้ว

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

  • @petraa4533
    @petraa4533 3 ปีที่แล้ว +1

    You're the best, thank you!!

  • @yousefalizadeh4892
    @yousefalizadeh4892 2 ปีที่แล้ว

    Thank you! This is so useful! 😊

  • @Animotion1
    @Animotion1 2 ปีที่แล้ว

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

  • @vishal1061972
    @vishal1061972 2 ปีที่แล้ว

    Thank you so much. Excellent tutorial.

  • @liucanjung8183
    @liucanjung8183 3 ปีที่แล้ว

    your video is the answer to my problem! thanks man

  • @Daryn031
    @Daryn031 3 ปีที่แล้ว

    Amazing tut, thanks!

  • @Josh-wu7kc
    @Josh-wu7kc ปีที่แล้ว

    Fantastic tutorial - thank you!!!

  • @MrGray512
    @MrGray512 4 ปีที่แล้ว +1

    Great tutorial!

  • @hartonogunawan2939
    @hartonogunawan2939 4 ปีที่แล้ว

    Thanks man! It Works!

  • @manumercuri7207
    @manumercuri7207 ปีที่แล้ว +1

    This saves me every time! Thanks!

  • @astridhiles6892
    @astridhiles6892 4 ปีที่แล้ว +1

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

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

  • @rrrrodddd
    @rrrrodddd 2 ปีที่แล้ว +1

    AMAAAZING, thank you!!

  • @maxhaller6463
    @maxhaller6463 ปีที่แล้ว

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

  • @rsr_10
    @rsr_10 3 ปีที่แล้ว +1

    Thank you so much!! Totally love your channel

  • @JustinEspejo
    @JustinEspejo ปีที่แล้ว

    this was very helpful! thank you!

  • @espertron
    @espertron 3 ปีที่แล้ว +1

    You beautiful human, thank you for this!

  • @EclipseMall
    @EclipseMall 3 ปีที่แล้ว

    Thanks, M8, very detailed!

  • @SaraRavich
    @SaraRavich 3 ปีที่แล้ว +1

    OMG the only script that helped, thank you

  • @TheHoleshoes
    @TheHoleshoes 3 ปีที่แล้ว

    super helpful! thanks!!

  • @jordantaylor3d
    @jordantaylor3d 2 ปีที่แล้ว

    Thanks for sharing!

  • @florence9476
    @florence9476 3 ปีที่แล้ว

    Thanks so much soooo helpful!

  • @chiragparmar1964
    @chiragparmar1964 2 ปีที่แล้ว

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

  • @aqueminteressarpossa3445
    @aqueminteressarpossa3445 5 ปีที่แล้ว +2

    king regards from Brazil, you are the BOSS

    • @ukramedia
      @ukramedia  5 ปีที่แล้ว +1

      Thank you for your kind words!

  • @robertvoy
    @robertvoy 5 ปีที่แล้ว +1

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

    • @ukramedia
      @ukramedia  5 ปีที่แล้ว

      Thanks, Robert!

  • @hvaranhvaran
    @hvaranhvaran 2 ปีที่แล้ว

    Thank you! You're da man!

  • @arifx1034
    @arifx1034 4 ปีที่แล้ว

    Love it, Thanks

  • @dwisuputra9157
    @dwisuputra9157 3 ปีที่แล้ว +1

    THANK YOU!

  • @Williod
    @Williod ปีที่แล้ว

    Thank you, man.

  • @MAXEN3D
    @MAXEN3D 3 ปีที่แล้ว +1

    I swear I like you man >> You the Best

  • @sarosong
    @sarosong 4 ปีที่แล้ว +1

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

  • @cuerposquimicos
    @cuerposquimicos 3 ปีที่แล้ว

    buenisimo chamigooooo!! gracias

  • @andisinambela2002
    @andisinambela2002 3 ปีที่แล้ว

    Thank you very much!!!

  • @massashihosono
    @massashihosono 3 ปีที่แล้ว

    Love ya... saved the day!!

  • @nisianglian6263
    @nisianglian6263 3 ปีที่แล้ว +1

    you save my day man

  • @lv0myc
    @lv0myc ปีที่แล้ว +1

    Thank you so much!

  • @archangelz816
    @archangelz816 4 ปีที่แล้ว +1

    Thank's mate.

  • @cauesfernandes
    @cauesfernandes 4 ปีที่แล้ว +1

    Thanks! helped me a lot

    • @ukramedia
      @ukramedia  4 ปีที่แล้ว

      Awesome! Thanks for watching it!

  • @AnasAlhosni
    @AnasAlhosni 2 ปีที่แล้ว

    you're the best. thank you.

  • @shacharhakim6443
    @shacharhakim6443 ปีที่แล้ว

    thanks man!!

  • @rubensangelo1646
    @rubensangelo1646 9 หลายเดือนก่อน +1

    genius, Thanks!!!

  • @CreditForForeigners-pt9by
    @CreditForForeigners-pt9by 5 หลายเดือนก่อน

    great stuff. thx

  • @pipoko4077
    @pipoko4077 3 ปีที่แล้ว

    I LOVE YOU !!

  • @eryzium
    @eryzium 4 ปีที่แล้ว

    Thanks man :D

  • @SeunJubril
    @SeunJubril 3 ปีที่แล้ว +1

    Thank you!!!!!!!

  • @guidedvisuals
    @guidedvisuals 4 ปีที่แล้ว

    You legend!

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

  • @VolkanDalyan
    @VolkanDalyan 3 ปีที่แล้ว +1

    Thank you for this great video.

    • @ukramedia
      @ukramedia  3 ปีที่แล้ว

      Glad it was helpful!

  • @OmniVerse_Mavericks
    @OmniVerse_Mavericks 3 ปีที่แล้ว

    thank you so much

  • @matheus1397
    @matheus1397 5 ปีที่แล้ว +1

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

    • @ukramedia
      @ukramedia  5 ปีที่แล้ว

      I'm glad I was able to help. Thanks for watching!

    • @stressbuster-nocopyrightso1553
      @stressbuster-nocopyrightso1553 4 ปีที่แล้ว

      @@ukramedia Sir! I need to run exactly with different no. In the same text for eg: 1,237,345 ~ 1,273,888 using slider control

    • @stressbuster-nocopyrightso1553
      @stressbuster-nocopyrightso1553 4 ปีที่แล้ว

      Ik how to add "~" this symbol!

  • @imabhishek27
    @imabhishek27 3 ปีที่แล้ว +1

    Thanks bro... u are awesome

  • @KhalilCh
    @KhalilCh หลายเดือนก่อน

    Thank you

  • @joanceamon4227
    @joanceamon4227 ปีที่แล้ว

    Thank a lot Sir

  • @matthewburnham-jones2829
    @matthewburnham-jones2829 4 ปีที่แล้ว

    Liked and Subscribed - Great Vid

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

  • @johnotimi6813
    @johnotimi6813 3 ปีที่แล้ว +1

    Cheers Mate!

    • @ukramedia
      @ukramedia  3 ปีที่แล้ว

      Thanks, John!

  • @gift9729
    @gift9729 4 ปีที่แล้ว

    thank a lot

  • @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 3 ปีที่แล้ว

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

  • @andresromero8914
    @andresromero8914 5 ปีที่แล้ว +1

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

  • @RahulKashyap-zd8ho
    @RahulKashyap-zd8ho 2 ปีที่แล้ว +1

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

  • @Jkbucd13
    @Jkbucd13 3 ปีที่แล้ว

    game CHANGER. thank you!

    • @ukramedia
      @ukramedia  3 ปีที่แล้ว

      You should check out my new After Effects tool that does that quicker: th-cam.com/video/HQCBkOjJ400/w-d-xo.html

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