Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scripting: how to find out a layer’s endTime?

  • Scripting: how to find out a layer’s endTime?

    Posted by Paulo Jan on April 28, 2015 at 3:05 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?

    Paulo Jan replied 9 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy