-
AE Live text template – Dynamic mask?
Hello!
I am creating a Live Text template for lower 1/3 for use in Premiere Pro. I have a background rectangle behind my text that automatically resizes, depending on the length of the name. I would like to have the right edge of this background shape fade to transparent after the end of the name text, which will obviously vary in length.
Here is the expression I am using on the background strip:
In the size entry:
x = thisComp.layer(“Name”).sourceRectAtTime().width+300;
y = value[1];
[x, y]In the position entry:
content(“Rectangle Path 1”).size/2I have tried duping the background strip and putting a gradient ramp at the edge, and using it as a mask. It works when overlaid over the strip, but I am animating the mask from off-screen (left) into position at the left edge, and the gradient ramp position stays static, instead of moving with the mask…
Putting a feathered linear wipe on the strip doesn’t work either because the 0% and 100% never seems to be true to the shape, so it doesn’t work for varying size. (Can someone please explain that too?)
Any thoughts on this? Thanks very much in advance!
-Andrew