Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions trim paths velocity

  • trim paths velocity

    Posted by Peter Zeet on January 12, 2017 at 12:26 am

    Hi!
    I’m trying to achieve this kind of trim lenght via expressions.

    I’d usually link the start trim to a slider like this:
    sl=effect("Slider Control")("Slider");
    content("Group 1").content("Trim Paths 1").end-sl

    and then animate the slider according to my needs manually, but I was wondering if there is a way to make it work via expressions? I guess it should be something related to the end trim’s velocity and make the slider value go from 0 to lets say 1 depending on the max amount of the keyframe velocity?

    Peter Zeet replied 9 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kevin Camp

    January 23, 2017 at 11:31 pm

    assuming you animated the offset, applying this to the ‘end’ property should start to get you there:

    content("Trim Paths 1").offset.speed * thisComp.frameDuration

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Peter Zeet

    March 26, 2017 at 10:32 pm

    awesome! many thanks!!
    I’m so sorry for not saying thanks before! I just realized you answered my question so long ago!

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