Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Trim paths trigger’s on inPoint of layer

  • Trim paths trigger’s on inPoint of layer

    Posted by Mac Lad on March 12, 2018 at 11:02 am

    Hi Guys,
    Need some Expression help to trigger Trim paths animation depending on inPoint of the layer. I have multiple layers which have trim paths applied to it which are controlled by the main layer which has the slider controls to it. I have stacked these layers randomly. I am trying to add an expression which can start the trim paths animation depending upon the inPoint of the layer. Is it possible..?

    Mac Lad replied 7 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Matthias Weiner

    March 12, 2018 at 1:21 pm

    This may help you?

    //get relative time
    t = time-inPoint;

    //get comp fps
    fps = 1.0 / thisComp.frameDuration;

    //set some user var
    start_val = 0;
    end_val = 100;
    end_animation = 15 //set end of animation in frames after inPoint

    //trim path depending on relative time
    linear(t, 0, end_animation/fps, start_val, end_val);

  • Mac Lad

    June 23, 2018 at 12:06 pm

    This Works Man !!! Thanks a ton

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