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.
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.