-
I need help with this Expression: linear(time, 0, thisComp.duration, 0, 100);
Hi Everyone,
I am animating the Stroke of a Rectangular Shape Layer applying this expression to the “End” property of a Trim Path:
linear(time, 0, thisComp.duration, 0, 100);
The expression makes the stroke automatically animating itself based on the duration of the composition.
It works flawlessly but I have a question:
is it possible to animate just one side of the shape layer modifying the expression?
Let me clarify…
I have a Rectangular Shape Layer with 4 vertices.
With the expression mentioned above, the stroke starts from a point (first vertex) and goes to the last point (4th vertex which “overlaps” the first one) passing through the second one and the third one.
Is there a way to make the stroke ending perfectly on the second vertex or on the third one?
I’ve tried to divide the expression by 2,3 and 4:
linear(time, 0, thisComp.duration, 0, 100)/4;
But it’s a nonsense solution for a rectangular shape because it works only on a squares and actually it’s not that smart.
Do you have any idea?
I would really appreciate your help =)
Thanks in advance