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: 429 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
| |||||
Text Counter over time | |||
|
This expression will count from 0 to 100 over a 4-second interval.
|
After Effects CS3 Text-FX Expressions Views: 201 Permalink | |
|
posted by MaxX on Feb 22, 2010
| |||
Clockworks Preset/Custom Effect | ||
|
With this Preset, you can create Clocks, or countdowns. You can add Time, with fully functional switches and parameters!
|
After Effects CS3 Text-FX Presets (ffx) Views: 371 Permalink | |
|
posted by MaxX on Feb 02, 2010
| ||
Auto Layer Flip | |||
|
Apply this expression to your 'Scale' attribute and it'll automatically 'flip' the layer in 3d space when the camera goes behind it. This way, your text will never be seen from behind, for instance.
|
After Effects 6 Camera Expressions Views: 341 Permalink | |
|
posted by MicGyver on Sep 15, 2008
| |||