Skip to main content
YuK1_Works
Inspiring
March 11, 2024
Question

How to get the time from the beginning of a layer

  • March 11, 2024
  • 1 reply
  • 276 views

I am using expression in AfterEffects.
I was using the time attribute, but the value changed when I precomposed it,

let t = time - inPoint;

to replace the time attribute.
Is there any way to more easily get the time from the start of the layer?

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
March 11, 2024

Are you talking about getting the in point of a layer inside a precomp? I think it would be something like this:

t = time - comp(name).layer(1).inPoint;