Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions a ‘time in’ expression…

  • a ‘time in’ expression…

    Posted by Erin Shelby on November 20, 2007 at 10:56 pm

    Hi all,

    I was wondering if there was an expression that knows what ‘the time’ is piece of footage starts. So for instance, if I had a layer of footage that was place at the 2 second mark of a comp, is there and expression that could return “00:00:02:00” as a value?

    Dan Ebberts replied 18 years, 6 months ago 3 Members · 4 Replies
  • 4 Replies
  • Mike Clasby

    November 21, 2007 at 3:01 am

    thisComp.layer(“My Layer”).inPoint

    Change the “My Layer” to whatever your layer name is.

    As a check, when this expression is put on Source Text of a text layer you get the Time of My Layer’s inPoint.

    Well, it returns the time in 1.234567, seconds to 6 decimal points.

  • Mike Clasby

    November 21, 2007 at 3:02 am

    In your example it would say, “2.0000000”.

  • Mike Clasby

    November 21, 2007 at 3:12 am

    Ooops, I lied, it’s to 14 decimal points. Do you want something different?

  • Dan Ebberts

    November 21, 2007 at 3:13 am

    You could also try applying this to a text layer:

    L = thisComp.layer(“Layer 1”);
    timeToTimecode(L.inPoint)

    Which should give you the timecode for Layer 1’s in point.

    Dan

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