-
Tricking linear wipe to use a vector image’s actual size instead of the frame.
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);