Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Stroke text box expression?

  • Stroke text box expression?

    Posted by Julie Mullins on August 6, 2016 at 1:15 am

    Hi,

    I currently have an animation where I have a rectangle shape (no fill, white stroke) that “draws on” by trim paths around a date. In the future someone else (who doesn’t know AE well) will have to edit this file and change the date, so I need to make it as easy as possible for them so that all they have to do is change the text and the stroked box will adjust itself. I tried this method from Evan Abrams’ tutorial (https://www.youtube.com/watch?v=kI3yzx6CATg) but the problem I run into is that the stroke distorts and doesn’t stay uniform when the rectangle changes size.
    Is there another way to set this up so that the stroke stays uniform, and the box extends/contracts based on the amount of text?

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Julie Mullins replied 9 years, 11 months ago 2 Members · 6 Replies
  • 6 Replies
  • Kalleheikki Kannisto

    August 6, 2016 at 8:15 am

    Couple of different options for scaling a layer to text length here:

    https://forums.creativecow.net/thread/227/32772#32772

    If you use the Generate > Stroke effect of a solid with a mask and turn continuous rasterization on, the stroke will remain the same width when scaling the layer.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Julie Mullins

    August 6, 2016 at 3:22 pm

    thank you I will give this a shot!

  • Julie Mullins

    August 6, 2016 at 3:57 pm

    Sorry, I can’t get the Stroke to appear when I do effect > generate > stroke. Could you give me a bit more step by step? Thanks!

  • Julie Mullins

    August 6, 2016 at 4:01 pm

    Oops, I noticed I didn’t have “All masks” turned on, turned it on and now stroke is visible, and I turned the opacity of the fill to 0 so that looks how I want now. But the box size isn’t updating based on the text, I must have broke something

  • Kalleheikki Kannisto

    August 7, 2016 at 9:04 am

    It seems to work a bit different with a masked solid.

    Here’s a sample project with centered text. If you want it left-aligned, you’ll have to move the anchor point to the top left corner and adjust the position accordingly.

    10389_autotextboxmaskedsolid.aep.zip

    You’ll need to move the text box up or down if you change type size.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Julie Mullins

    August 8, 2016 at 3:59 pm

    Awesome, thank you! Is there any way to make a generated stroke on a mask have cap ends and corners?
    If there was a way to link the length of a mask on top of a pre comp of the date and box to the length of the text…? So at least the mask could “shave off” the rounded corners?

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