FORUMS: list search recent posts

Scripting: how to find out a layer's endTime?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Paulo Jan
Scripting: how to find out a layer's endTime?
on Apr 28, 2015 at 3:05:36 pm

Hello:

I know there's the "startTime" property to find out the start time of the layer within a composition, but is there any way to find out the position of the layer's end? Something like "endTime"?

Sure, you could find it out just by doing:

var endTime = layer.startTime + layer.source.duration;

But what if the layer has time remapping or stretch applied to it? Then the calculation is no longer accurate. And of course, you can't trust "outPoint" because the layer might be trimmed. Is there any other way to access this data?


Return to posts index

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