Activity › Forums › Adobe After Effects › Counter Expression help
-
Counter Expression help
Posted by Cptryg on May 12, 2007 at 3:01 amCan someone help me with an expression that counts up from 1600 to 2007 every 1.5 seconds?
ThanksSam Moulton replied 19 years, 2 months ago 3 Members · 4 Replies -
4 Replies
-
Sam Moulton
May 12, 2007 at 6:47 pmadd an expression control slider to your text layer set a keyframe at 0 with a value of 1600, set a value at 1.5 seconds of 2007 then add the following expression to the slider
loopOut(“cycle”)
then use the pick whip to link to the slider and add value.toFixed(0) to the end so it looks like this:
effect(“Slider Control”)(“Slider”).value.toFixed(0);
I think this is easier than building in a loop to the time value.
-
Mike Clasby
May 12, 2007 at 6:54 pmOK, this seems to work, on the Source text, it gives you 1 year from 1600 every 1.5 sec:
countUp = 1600 + Math.floor(time/1.5);
[countUp]
-
Sam Moulton
May 12, 2007 at 7:23 pmthat probably makes more sense. when I first read the request I thought he wanted to loop between 1600 and 2007 every 1.5 seconds. I must need a nap.
Reply to this Discussion! Login or Sign Up