![]() Universal Counter/Currency Formatter | ||||||
Create a universal counter that will count from one value to another over a fixed amount of time. Easily format the count with commas, add a dollar sign for currency formatting, and specify the number of digits to the right of the decimal point.
|
After Effects CS3 Text-FX Expressions Views: 16002 Permalink | |||||
"This is a perfect application for an expression applied to the source text parameter of a text layer. We'll drive the counter with AE's linear() interpolation method. This allows us (with a single line of code) to easily map the counting range across the duration of the count.
As a bonus, doing it this way will automatically give us a counter that will count up or down. All we have to do to make it count down is make the beginning count larger than the ending count. Also, this method will automatically cause the output to freeze when it reaches the end count. For the formatting, we can take advantage of a couple of JavaScript's built in methods to help us accomplish our goal. We'll use the string method substr() to do the manipulation necessary to insert the commas and toFixed() to handle the formatting of the decimals. For negative numbers, we'll strip off the sign prior to formatting and re-apply it afterwards, along with an optional dollar sign. The code may take you a while to decipher, but for most applications you should be able to just paste it into your project and modify the six variables at the beginning of the code." by Dan EbbertKeywordsExpression, Text, Count, Countdown(Min. Version: After Effects CS3, Category: Text-FX, Type: Expressions) | ||||||
posted by MicGyver on Jan 18, 2010
|
![]() CountdownTimer Preset | |||
|
The CountdownTimer preset uses expressions to make it easier for you to create countdowns.
|
After Effects CS4 Useful things Presets (ffx) Views: 29981 Permalink | |
posted by Trent Armstrong on Oct 15, 2010
|
![]() Text Counter over time | |||
|
This expression will count from 0 to 100 over a 4-second interval.
|
After Effects CS3 Text-FX Expressions Views: 35192 Permalink | |
posted by MaxX on Feb 22, 2010
|