Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects AE Live text template – Dynamic mask?

  • AE Live text template – Dynamic mask?

    Posted by Andrew Kowall on December 12, 2016 at 5:00 pm

    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/2

    I 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

    Andrew Kowall replied 9 years, 8 months ago 1 Member · 1 Reply
  • 1 Reply
  • Andrew Kowall

    December 12, 2016 at 7:28 pm

    Thanks for your response, Dave.

    The thing is… I need the mask to be exactly the same size as the background strip, so it’s got the same expression as the strip does. I just need the last, say, 200 pixels or so to fade to transparent. I can’t figure out how to do it dynamically as the strip changes width depending on the text length…

    Sorry if this is confusing…

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy