Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time of last key

  • Posted by Stuart Gibb on November 9, 2017 at 12:13 pm

    Hello,

    I am trying to determine the time at which my trim path shape reaches 100% complete.

    I am able to determine the current value using:

    thisComp.layer(“Shape Layer 1”).content(“Shape 1”).content(“Trim Paths 1”).end.value

    How do I combine the above with the .key/.time to determine the time of the last key i.e. 100% complete?

    Thanks,

    Stuart

    Dan Ebberts replied 8 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    November 9, 2017 at 4:43 pm

    Try this:

    prop = thisComp.layer(“Shape Layer 1”).content(“Shape 1”).content(“Trim Paths 1”).end;
    prop.key(prop.numKeys).time

    Dan

  • Stuart Gibb

    November 11, 2017 at 8:48 am

    Excellent Dan, thank-you.

    Next question if I may, I am using your up-down timer expression.

    The inpoint on my text layer is > 0.

    Prior to the inpoint, I want to set the text to read “00:00”.

    How would I do this? I can’t determine the value of time prior to the text layer’s inpoint?

  • Dan Ebberts

    November 11, 2017 at 10:40 pm

    I’m not at all sure I understand the question, but maybe like this:

    clockTime = Math.max(rate*(time – inPoint),0);

    Dan

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