ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Tricking linear wipe to use a vector image's actual size instead of the frame.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Justin Maloney
Tricking linear wipe to use a vector image's actual size instead of the frame.
on Dec 5, 2018 at 7:12:37 pm

Hey there, I'm making a template for a client that uses alot of text layers. They like this effect for animating them on using linear wipe but because text are vectors in AE the wipe starts at the side of the frame and it throws them off. They're quite new to Motion Graphics so I'm trying to make this as easy as possible for them and keep pre-comps to a minimum.

I'm posting this in the Expressions sub-forum since I figure an answer would lie there. Is there a way to use the image itself to influence the completion rate?

Thanks in advance!

PS: I'm using an expression on the wipe effect already to animate it based on inPoint and outPoint, similar to "fade - frames" behavior.

AnimateInTime = thisComp.frameDuration * effect("Animate In+Out - frames")("Fade In Duration (frames)");
AnimateOutTime = thisComp.frameDuration * effect("Animate In+Out - frames")("Fade Out Duration (frames)");

AnimateInCompletion = linear(time, inPoint, inPoint+AnimateInTime+0.001, 0, 100);
AnimateOutCompletion = linear(time, outPoint-AnimateOutTime-0.001, outPoint, 100, 0);

X = (AnimateInCompletion * AnimateOutCompletion) / 100;

linear(X, 0, 100, 100, 0);



Return to posts index

Kalleheikki Kannisto
Re: Tricking linear wipe to use a vector image's actual size instead of the frame.
on Dec 9, 2018 at 10:26:54 am

Sounds like a sourceRectAtTime() matter. If it is a linear horizontal wipe, you would need to know the left and right edges of the text block --which you can get with sourceRectAtTime() -- and adjust the completion settings 0-100 so that the range gets mapped to the area of the text block. What you need is the left and right edges as a percentage of the screen width. If you're going from left to right, the screen left edge is 0 and the right edge is 100. The left edge of the text layer is X1 (percent) and the right edge is X2 (percent). You need to remap the completion 0 to 100 to this X1 to X2 range with the linear() expression.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

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