Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to get thisLayer.inPoint as the LAYER’S in-point, not the COMP’S in point

  • How to get thisLayer.inPoint as the LAYER’S in-point, not the COMP’S in point

    Posted by Paul Roper on July 25, 2013 at 10:31 am

    Hello,

    I have a layer in a comp, and I want to access the layer’s source footage’s in point, not the point at which the layer starts in the comp.

    For example, say I have a 10sec comp, and I’ve got a layer of source footage whose in-point is 40secs, out point is 50secs. “thisLayer.inPoint” would give me 0, as that’s the layer’s in-point in the comp. But how do I access the source footage’s “40 secs” in point? Any thoughts?

    Thanks,

    Paul

    Paul Roper replied 12 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mitch Mann

    July 25, 2013 at 12:28 pm

    This will give you the comp time where the clip starts:

    thisLayer.startTime

    This will give you the layer time where the clip starts:
    (40 seconds in your example, no matter where the clip occurs along the comp timeline):

    thisLayer.inPoint - thisLayer.startTime

  • Paul Roper

    July 25, 2013 at 1:14 pm

    Perfect, thanks!

    I’ve been wondering what Vanilla Ice is up to these days. After Effects. Who’d have thought it?

    – Paul

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