Activity › Forums › Adobe After Effects › Technique for Animated Number Countdown with Commas
-
Technique for Animated Number Countdown with Commas
Claire Presnall replied 2 years, 9 months ago 26 Members · 27 Replies
-
Rico Nguyen
February 4, 2020 at 6:54 ampls show me how to do If I want to take one number after common?
Many thanks! -
Tim Garber
January 19, 2021 at 9:16 pmCurious. This looks like it should work but I am getting syntax errors of a few different lines.
The first line, but I discovered if I re-pickwhip the Slider control the value doesn’t change but the syntax is solved,
More complicated for me since I don’t code, is line 7. Just a syntax with no explanation.
I’m using the most current version, 17.5.1
-
Kevin Camp
January 20, 2021 at 11:14 pmTo go over 1 million you can also use an angle control rather than a slider control. It’s an odd work around but it works.
-
Filip Vandueren
January 21, 2021 at 9:51 amHere’s how to do things like this in the new Javascript engine:
var num = effect("Point Control")("Point")[0];
num.toLocaleString('en-EN', {style: "currency", currency: "USD"});see here for all possible options:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat -
Tom Davis
February 2, 2021 at 2:29 pmIn the latest version of After Effects you can do the following:
Apply an angle control to a text layer (sliders are limited to 1 million) and then add the following expression to the source text:
var num = parseFloat(effect("Angle Control")("Angle"));
num.toLocaleString("en-GB");I’ve also written a blog post with more information on how to create a number counter with commas in After Effects including how to include currency options as well!
-
Claire Presnall
August 8, 2023 at 3:32 am11 years later, and this was EXACTLY what I needed! Thanks!!!
Reply to this Discussion! Login or Sign Up