Contadores Numéricos Animados no After Effects #contadoresnumericos #aftereffects #numerosanimados
3 min read
2 months ago
Published on Aug 27, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
In this tutorial, we will learn how to create animated numeric counters in Adobe After Effects. This guide will cover various formats, including simple numbers, numbers with decimals, currency symbols, percentages, and even countdowns for minutes. By the end, you'll have the skills to animate numbers effectively for your projects.
Step 1: Create a New Composition
- Open After Effects and create a new composition.
- Go to Composition > New Composition.
- Set your desired resolution and duration.
Step 2: Add a Text Layer
- Select the Text Tool from the toolbar.
- Click on the composition panel and type a placeholder number (e.g., "0").
- Adjust the font and size as needed.
Step 3: Add a Slider Control
- With the text layer selected, go to Effect > Expression Controls > Slider Control.
- This will allow you to control the numeric value dynamically.
Step 4: Apply Expressions for Animation
- Alt-click (or Option-click on Mac) the stopwatch icon next to the Source Text property of your text layer.
- Enter the following expression:
num = effect("Slider Control")("Slider").value.toFixed();
function addCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
}
addCommas(num);
- This expression formats the number with commas for thousands.
Step 5: Animate the Slider
- Select the Slider Control layer.
- Move the playhead to the start of your animation.
- Set the slider value to the starting number (e.g., 0).
- Press U to reveal keyframes, then add a keyframe.
- Move the playhead to the end of your desired animation duration.
- Change the slider value to the final number (e.g., 1000).
- Adjust the speed of the animation by modifying the keyframe interpolation.
Step 6: Create Different Number Formats
Simple Number
- Follow Steps 1-5 for simple numbers.
Number with Decimal
- In the expression, replace
toFixed()
withtoFixed(2)
to show two decimal places.
Currency Format
- Modify the expression to prepend a currency symbol (e.g., R$):
"R$ " + addCommas(num);
Percentage Format
- Similarly, to display a percentage, adjust the expression:
addCommas(num) + " %";
Number with Text
- To add text at the end, modify the expression:
addCommas(num) + " Units";
Step 7: Create a Minute Counter
- Start with a new text layer and follow the same steps.
- Use the expression to convert seconds to minutes, formatting it as needed.
Conclusion
You have now learned how to create various animated numeric counters in After Effects, including simple numbers, formatted currency, percentages, and countdowns. Experiment with different formats and animations to enhance your projects. For further practice, try combining these techniques with other animation effects to create engaging graphics. Happy animating!