FORUMS: list search recent posts

understanding time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ryan Paterson
understanding time
on Mar 14, 2013 at 5:05:39 pm

I understand why this doesn't work, because the variable t is just giving the valueAtTime function a ridiculously high integer-

t = timeToFrames() - 1;
thisComp.layer(index - 1).timeRemap.valueAtTime(t);

How can I re-write this to do what I want? I've been trying to understand how time works in expressions for some time and the fundamentals keep eluding me. What exactly is the time value returning in all those decimals?

Return to posts index

Dan Ebberts
Re: understanding time
on Mar 14, 2013 at 5:13:01 pm

This is one way (I think it's what you're trying to do):

t = time - thisComp.frameDuration;
thisComp.layer(index - 1).timeRemap.valueAtTime(t);

time gives you the comp time in seconds.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 All Rights Reserved