In After Effects, to ensure that numbers always display with two digits, with a leading zero when the number is less than 10, you can use this expression on the Source Text property: // Get the value from your slider control var num = Math.round(effect("Slider Control")("Slider")); // Check if the number is less than 10 and add a leading zero if necessary num = num < 10 ? '0' + num : num; // Output the number as a string num.toString(); Thank me later!
Thank you very much for the tutorial. Here is code for the comma for those who need it: num = effect("Slider Control")(1).value.toFixed(0); function addCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } addCommas(num)
Hi! So sorry for the confusion, it is now officially set to free. it was supposed to be set before the video was made public but ended up being an hour or 2 behind schedule
Helpful, but how do I add a 0 in front of the single digit numbers so when they transition to double digit (11,12) it doesn't shift over to the right? I'm trying to keep it inside of a circle and it looks odd.
What's the code I need if I only want it to count by hundreds? I'm counting from 500-6200 and dont want it to count every single number, only every 100.
Hi Krizby! Sorry for the confusion, it is now officially set to free 😄 it was supposed to be set before the video was made public but ended up being an hour or 2 behind schedule
Thanks so much for this fantastic, fast, and easy to understand tutorial. The only problem with the "slider control" effect is that it can only count up to 1 million. I understand you need to use the "point control" effect for that. But when I apply that same code to "point control" it doesn't work. How would I use your method to count up to 1 billion for example?
This is forever timely usage for we After Effects users. All expressions are well noted and to be used always. Keep up the good work and more subscribers to you.
Geez-o-flip! I didn't understand a single thing .... ...but, the editing was fantastic. I was standing in the LIKE line before the video was half way through. tHanks for a great video!
My graph does not work like this, the x and y values are not ever time, but over values, and I tried to change it, can't get that speed ramp to work as smooth as yours. Followed directions exactly. Fuck Adobe, man. I fuckin hate this piece of shit software, but every goddamn job requires that I use it.
Hi! So sorry for the confusion, it is now officially set to free. it was supposed to be set before the video was made public but ended up being an hour or 2 behind schedule
I have problem of changing the font of those numbers. Some special font does not work. It always became the same font. Really appreciate if you can help.
Hi! So sorry for the confusion, it is now officially set to free. it was supposed to be set before the video was made public but ended up being an hour or 2 behind schedule
Anybody knows how can I add the commas in longer numbers animations like 15,000,000 I only managed to put a dot after 15?... ugh After Effects has nothing to do with Premiere Pro, it's annoying.
I was just thinking why it can't have a drag and drop preset. Thank you so much for helping the small editors by making the preset free. This preset is a must have.
This is great! but my number needs a period. example to go from 16.000 to 100.000 - I don't want the American way 16,000 to 100,000. My currency do not use comma. How to express this? thanks.
Nice tutorial! I have two questions: 1. I want the Numbers to go down instead, How do I do that? 2. I want another starting and end points, eg. from 1500 down to 500. How do I change that?
hey great tutorial! When i click the graph iconm I get the graph in units ie i can alter in how many units it counts. However, I want to influence the units/2 like in the video. I don't know how I can go to the graph in the video, ive otherwise followed all the steps correctly. Does anyone know?
i found the answer. When you right click on the graph (not the graph button! thats where i went wrong) you can select if you want it counting in units or in speed
It's a bit more complex sadly and thought it was easier just to give you the free presets with the commas. You can also reverse-engineer them once you have them 😄, sorry for the answer / non answer but if you wanted a copy paste solution I've left it below here: -------- num = effect("Slider Control")(1).value.toFixed(0); function addCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } addCommas(num)
So once I import this into my Premiere Pro project, how can I keyframe the counter so it doesn't continuously count? For example, if I score a goal, I want the counter to go up by 1, but right now it looks as if the only way to do this in Premiere Pro is by cutting & pasting. Thanks!
Hey, good question, but if you actually just want to change your stats by 1 number and they don't change often I actually find that cutting and pasting works well. Maybe I'm misunderstanding your question but this effect I show works best for large numbers where you want to go through a lot quickly
love this, used the same function to count down but had to keyframe each number as the expression would add a "-" in negative space. Is there an expression to remove the "-" when counting down?
For sure! It was actually multiple layered SFX combined together, I'll have to go back and check but I think at least this was one of them - tinyurl.com/y4vxpes8 I also use a bicycle sound effect for a lot of counting stuff as well - tinyurl.com/rea7erun