Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Live shape path from Source text?

  • Live shape path from Source text?

    Posted by Kyle Maven on October 9, 2019 at 8:32 pm

    I am using path elements(stroke, dashes, trim paths, repeater, ect.) to create an animation that I want to duplicate for a bunch of title slides. I want to have one source text layer where I can type anything into, and another shape layer with path(s) that updates automatically based on what the text says. I am newish to expressions so I am not sure if this is even possible. I am just trying to refrain from using “Create Shapes from Text” and moving all those shape groups into the animated layer and re-positioning them.

    If there isn’t a way to do this with expressions, are there any scripts available to update the shape paths with a button press?

    thanks in advance!

    Chris Scalzo replied 6 years, 6 months ago 4 Members · 3 Replies
  • 3 Replies
  • Alex Printz

    October 10, 2019 at 2:06 pm

    I don’t believe there is a way to do this with expressions, and I cannot think of a script/plugin that does this. Your best bet might be to do it in Illustrator as the styles you want, and link the AI files inside of AE. Just updated the AI files, and it should update in AE. Mask appropriately.

    Alex Printz
    Mograph Designer

  • Dan Ebberts

    October 10, 2019 at 4:32 pm

    I’m not sure that this is anywhere near what you’re looking for, but if you apply this to the path of a shape layer, it should draw a rectangle around your text layer:

    pad = 10;
    L = thisComp.layer(“TEXT”);
    r = L.sourceRectAtTime(time,false);
    ul = fromComp(L.toComp([r.left – pad,r.top – pad]));
    ur = fromComp(L.toComp([r.left+r.width + pad,r.top – pad]));
    lr = fromComp(L.toComp([r.left+r.width + pad,r.top+r.height + pad]));
    ll = fromComp(L.toComp([r.left – pad,r.top+r.height + pad]));
    createPath([ul,ur,lr,ll],[],[],true)

    Dan

  • Chris Scalzo

    October 11, 2019 at 3:36 pm

    I am not sure if this will help you, but I have done a create shapes manually inside my animation comp and set all paths to trace off the path on index 1. this let me click create paths and send layer to the top of comp and have it update everywhere. Then if I did a couple times, I could even hot switch the linking to the top most traced mask, on the topmost layer just by moving to the top.

    thisComp.layer(1).mask(1).maskPath

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