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 access a layer’s source’s begin/end time

  • Scripting: how to access a layer’s source’s begin/end time

    Posted by Paulo Jan on December 26, 2014 at 9:28 pm

    Hi all:

    Given a layer in a comp, is there a way to find out the corresponding begin/end timecodes of its source footage? (i.e., this layer begins at its source’s 00:06:20 timecode). I guess what I’m trying to find out are the in/out points of said layer, but expressed not in composition time, but in source time.

    Thanks in advance.

    Paulo Jan replied 9 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 26, 2014 at 11:41 pm

    This is the only thing I can think of, but it may not be what you want:

    sourceIn = your_layer.inPoint – your_layer.startTime;
    sourceOut = your_layer.outPoint – your_layer.startTime;


  • Paulo Jan

    December 27, 2014 at 7:44 pm

    Actually, I believe that’s pretty much what I need. Thanks!!

    (I had read about startTime in the docs, but didn’t really understand what it meant when it talked about “start time of the layer”…)

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