ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Trouble finding and inserting slider expressions for count-up of numbers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Reed Brown
Trouble finding and inserting slider expressions for count-up of numbers
on Jul 3, 2019 at 9:18:19 pm

Hello all experts!
I've got an expression (see below) in an AE template for 3D Bars, and it contains an expression for the numbers to count up, but for the life of me, I can't find the right expression to add, and the right place to insert it, so that the numbers 1) don't have the decimal point, and 2) do include the comma inserted. The numbers do not go higher than 100,000. Appreciate all the help!

d1s = inPoint;
d2s = 0;
d2e = effect(3)("Slider");
d3s = outPoint;
trans = 1;
if (marker.numKeys==2)
{
d3e = marker.key(2).time;
d1e = marker.key(1).time;
}
else
{
d3e = outPoint - trans;
d1e = inPoint + trans;
}
ease(time, d1s, d1e, d2s, d2e) - ease(time, d3s, d3e, d2s, d2e);




Return to posts index

Tomas Bumbulevičius
Re: Trouble finding and inserting slider expressions for count-up of numbers
on Jul 4, 2019 at 8:54:50 am

Hey Reed. I assume you don't want decimals at all, and the comma is for thousands separation. If this correct:

1. Round end result to have no decimals:
Math.round('yourValueHere')

2. Everything else you need to know about counters, by Dan Ebberts:
http://motionscript.com/design-guide/counter.html

Cheers.

Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer - Dynamic Text Boxes Template with a Live Preview


Return to posts index

Reed Brown
Re: Trouble finding and inserting slider expressions for count-up of numbers
on Jul 4, 2019 at 8:21:07 pm

Thanks for the links. Will give 'em a try. I found the "round off" in the AE template (amazing what you find when you open your eyes!), and will attempt to insert the comma code into the script. Thanks again.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]