ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Trim paths trigger's on inPoint of layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mac Lad
Trim paths trigger's on inPoint of layer
on Mar 12, 2018 at 11:02:43 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..?


Return to posts index

Matthias Weiner
Re: Trim paths trigger's on inPoint of layer
on Mar 12, 2018 at 1:21:02 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);


Return to posts index

Mac Lad
Re: Trim paths trigger's on inPoint of layer
on Jun 23, 2018 at 12:06:06 pm

This Works Man !!! Thanks a ton


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]