ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Increase value in every 8 second interval

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
nilam kalita
Increase value in every 8 second interval
on Oct 6, 2019 at 2:17:14 pm

Hi.
Want to know about the expression for counting and adding up one value to exisiting value in every X seconds of time interval.

Ex. Starting counting at 1997 and after every 8 seconds it should count one and add up to the existing value and return that value, 1998 and then after 8 seconds 1999 and so on. But with a fixed start value.

Thanks
Nilam


Return to posts index

Dan Ebberts
Re: Increase value in every 8 second interval
on Oct 6, 2019 at 7:01:06 pm

This should work:

startVal = 1997;
incrTime = 8;
startVal + Math.floor(time/incrTime)


Dan



Return to posts index

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