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
Here is a quicker way to get the same result: th-cam.com/video/HQCBkOjJ400/w-d-xo.html
yes but this is free :))
Your website is broken I cant add anything to cart
thank you for putting the function in the description
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.
:-) I'm glad you found this useful, Arne.
Perfect. Lots of small details make this far more valuable than just a counter builder.
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.
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!
Звернув увагу, що ви українець. Особливо приємно бачити якісні відео зроблені українцями ;)
Дякую! Туторіал дійсно крутий.
YOU ARE THE BEST THANK YOU. Always short and sweet! Keeps me coming back again and again for help.
Great tutorial! Like many others, it helped me out in a pinch for a project. Thank you for posting!
This was hella helpful! Thank you very much! Keep up the amazing work!
Great tutorial! Lots of little knowledge gems woven into this into the main task! Thank you!
Thanks! Have been looking at heaps of blogs and this video was the most helpful.
Brilliant! Very useful for our dynamic templates. Thank you again.
You are so concise and get right to the point. Thanks!
thank you! best one teaching the comma in the counter yet!
Awesome content. Very helpful. Thanks for taking the time to put this together and share. Love it.
just amazing that the whole video is the solution to all my headache! you're a legend!!
THAAAANKKKKSS i found many tutorials but this one actually worked
Wonderful! Works like a charm. Thanks so much.
This expression really helped with an animated graph I needed to make for a project.
This expression is freaking gold! Thank you!
This is amazing! I really have to learn expressions.
In our darkest hours, you are the light!
So clear and informative. Fantastic teacher! Thanks
Just saved me HOURS. Thank you!!!
Also pressing Enter in the numberpad works to get out of Type mode ;) Great tutorial!
YO! This was super helpful for a current project. Appreciate the time and effort man!
I'm glad you found it useful, Joshua. Thanks for watching it!
Thank you very much for your knowledge! I'm honored to find this way :)
you are the only one online know what is doing-----thanks you saved me
Wow i found exactly what i was looking for and most easy way possible to do it. Keep up the good work !!
Glad to hear that! Thanks for giving it a try!
Excellent use of scripting! Great video, guys!
Thank you, SOM! You guys are awesome!
When 2 of the best teachers collide
Lifesaver, thank you!!
Just what I needed. Thanks!!!!!
Super tutorial. Helped me in a project I am working upon right now.
Awesome video, thanks for the code!
JUST WHAT I NEEDED! Thanks so much.
Happy to help, Erin!
It was very useful for me, just replaced the commas for dots. Thank you!
How?
Awesome tutorial, thanks for your help!
Thank you so much for this! I use this expression with Slider control : )
You're the best, thank you!!
Thank you! This is so useful! 😊
Omgosh amazing tip! Thank you so much for this. Great work!
Thank you so much. Excellent tutorial.
your video is the answer to my problem! thanks man
Amazing tut, thanks!
Fantastic tutorial - thank you!!!
Great tutorial!
Thanks man! It Works!
This saves me every time! Thanks!
wonderful ... thank you so much ! very clear :)
I tried Some other tutorials for this, And they didn't work. But You are Awesome! Thank you.
Glad I could help. Thanks for watching, Majid!
AMAAAZING, thank you!!
Brilliant! expression worked as intended just copy and pasting! thanks
Thank you so much!! Totally love your channel
this was very helpful! thank you!
You beautiful human, thank you for this!
Thanks, M8, very detailed!
OMG the only script that helped, thank you
super helpful! thanks!!
Thanks for sharing!
Thanks so much soooo helpful!
thank you so much buddy ....for helping me ....this is what i was searching for
king regards from Brazil, you are the BOSS
Thank you for your kind words!
Very nice! More useful expression tutorials like this please :)
Thanks, Robert!
Thank you! You're da man!
Love it, Thanks
THANK YOU!
Thank you, man.
I swear I like you man >> You the Best
Thanks so much, very much appreciated and very helpful, ;-)
buenisimo chamigooooo!! gracias
Thank you very much!!!
Love ya... saved the day!!
you save my day man
Thank you so much!
Thank's mate.
Thanks! helped me a lot
Awesome! Thanks for watching it!
you're the best. thank you.
thanks man!!
genius, Thanks!!!
great stuff. thx
I LOVE YOU !!
Thanks man :D
Thank you!!!!!!!
You legend!
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)
Thank you for this great video.
Glad it was helpful!
thank you so much
I was trying to do exactly that the other day and didnt know how, thanks!
I'm glad I was able to help. Thanks for watching!
@@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
Ik how to add "~" this symbol!
Thanks bro... u are awesome
Thank you
Thank a lot Sir
Liked and Subscribed - Great Vid
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!
Cheers Mate!
Thanks, John!
thank a lot
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?
yes.... use conditional statement and access the fontsize property after converting to string
I love your videos, a question has a tutorial of the start logo animation?
Appreciated.............
game CHANGER. thank you!
You should check out my new After Effects tool that does that quicker: th-cam.com/video/HQCBkOjJ400/w-d-xo.html
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.