Animate Numbers in After Effects - How to add commas, decimals & symbols
Вставка
- Опубліковано 12 жов 2023
- This simple counter effect is great for telling a visual story when numbers are displayed on screen. So in this after effects tutorial I'll be showing you exactly how achieve this same effect and even how to create your own preset to save a tonne of time!!
Just follow along and unlock a new effect...
The expression you need:
num = value;
function addCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
addCommas(num)
Big shout out to @ukramedia and @JustinOdisho for laying the foundations on this one.
Especially to ukramedia for his awesome tutorial here: • How to Add Automatic C...
But I found that in order to fully get the most out this effect (like changing how many decimal points you want or adding symbols) I had to do more research and trial and error.
But, it's your lucky day because you can skip all of that and have everything you need straight away to create this awesome effect!
Please note: The links below are affiliate links. If you purchase a product or service through them I may receive a commission. This helps me run this channel.
💡 My Gear:
New Studio Mic: amzn.to/3RuoDGD
Main Light - Aputure 120D II: amzn.to/41WUUrT
Colored Light (Big) - Aputure p60c: amzn.to/3Aq19Zg
Colored Light (Small)- Aputure MC: amzn.to/3otwmIk
Main Camera: amzn.to/3oBUKHX
Main Lens: amzn.to/43PkvEG
Wireless Microphone: amzn.to/3V8FyOD - Навчання та стиль
Protect this man at all costs.
Thank you so much 🙏
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.
same
thanks!
same
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 🙌🏼
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
Mate, You are a lifesaver. This is the most simplest, on point, easiest to understand video I saw regarding this. Thank you 3000! ❤
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.
Amazing content man, happy that there are people like you helping fellow creators like myself 👍
You're honestly the MAN for this!
great video! highlights everything that you possibly need to know, keep it up
You saved my life dude, thanks, the only video that mentions the point instead of comma!
This is it. This is, functionally, the best ae tutorial I've ever come across
This was awesome. Thanks for making it simple!
Blessings to you sir! This was an amazing video! Thank you!
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.
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 😂😂
Who is this Guy actually ? The best teacher ever, no one of the best he is so humble 😁
Thank you so much! Been looking for a way to make this effect for a long time now!
You're very welcome :)
Keep up the good content man, we appreciate it!
Thanks!!
I'm looking forward like this in another software, that is Davinci and Capcut
Awesome tutorial - subscribed!
You're only one video away. this one got me super motivated ... thanks man
It's so true :) You just need that one. Thank you so much for the super!!
Thank you man.
You literally answered all the questions.
Great tutorial ... Thank u.. i learned to make own preset
You are the best. Going to use this on my maps animation lol!
Its very cool! Thank You!
Thank you so much for the tutorial🙌
Thanks I was looking for it ! We want more cool ae effect tutorial 😊
More on the way!
Bro, you're awesome!
This is such a great video, you are truly a lifesaver.
thank you! this is what I need!
Perfect, thank you so much!
you are a life saver man, Subscribed
THIS IS THE BEST TUTORIAL! on this subject that I've seen, Thanks man
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 :)
100% completely agree
man!!! you just saved a soul🔥🔥
Great video with really valuable information. Thanks!
great value bro ! please kaap it up!
Perfect tutorial. Thanks man!
So helpful I was looking for this exact effect for so long.
This guy is definitely a hero
Thank you for figuring this out bro! Cheers! 🥂
All good man :)
Thank so much. This video was very helpful for me
Thank u this was of great value!
Thank you, sir, This is a good Tutorial!
Amazing🔥. Thanks🙏
best tutorial i've ever seen
Great stuff as always.
Thank you!
Nice Trick bro ❤
Thank you man it works
you are the best!!! tks a lot!
A big Thanks to you 🙏
THIS IS SO SIIICK Thank you
nice man, thankyouuuu so much its very help me
Great! Man thanks
what's that shutter sound effect that you have used in this video?
thanks for creating such amazing video ❤
tysm i seriously apprecaite it
thanks for the help bro 💖💖
very gooood tut❤
What a G! We're only one video away brother. Cheers.
Best advice ever🎉
I was looking for this.. amazing and easy, super like and share
So glad to hear this :)
Keep up the hard work brother 🙌
Always! :D
YOU ARE THE BEST MY FRIEND
Perfect, tanks!
Thank you so much buddy
The angle!! The angle parameter! Yes thank you so much for this!
U r the Motivation Man..
Excellent video, thank you very much sir.
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
Thank you so much... this is a game changer
You’re very welcome! Love this effect so much myself
man you are great
How use it in capcut
simple and very helpful, thanks
You're welcome 😊
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.
You’re so welcome! & thanks for your kind words :)
@@Validationbro can you drop the sfx used in the timer
This is amazing. Just watching to see whether this can be adapted for Apple Motion at the moment!
Thank you! Yeah, not sure with apple motion or other software at the moment. Hopefully there is a solution
GENIUS
Thank u so much, im newbie !!!
Thankyou very much Bro
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
Very helpful thank you so much! What's the sound effect in the first clip of the video? Can't find it anywhere
omg thank you, this saved me
No problem, it’s something that I’ve always struggled with so happy to share
Love from india ❤ you earned a subscriber
Really Love Your Content ,
Thank you!
thank you!!!
Where do you get the sound effect for the numbers counting
Hey man Amazing video thank you for sharing! If you don't mind me asking what's the song used for your intro?
Very good explanation❤
Thank you :)
Thank you !
You’re very welcome!
Great video! I used some of your tricks from the Ali video on my last short!
That's awesome man I'll be sure to check them out :)
Thanks ❤
Thank you legend.
Freaking amazing
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.
I did indeed read your mind haha
@@Validation That's twice in a row haha. First ali abdaal tutorial and now this.
Thanks man
Great content
Thank you, this was really helpful. Do you know how can I add a editable number like this into a mogrt for premier users?
u rocks!!! tk u
very helpfull thanks
Amazing Bro.. 🤗
In very easy step, u did it👌
Love from Pakistan 🇵🇰
Amazing content
Thank you!
I love you haha thanks bro
What kind of sound effect you are using for this effect?
Hey does anyone have an idea what's the sound effect used for the number animation?