Forum Replies Created

  • Andrew Musselman

    June 8, 2018 at 2:49 am in reply to: Layer Position Relative to Text Length

    Awesome!!! And what if I wanted to use it for text on the left side of the layer?

    Never Stop Learning.

  • Andrew Musselman

    June 7, 2018 at 9:16 pm in reply to: Layer Position Relative to Text Length

    I know this is an old thread, and I’m not that great with expressions. This should do exactly what I need it to, but how do I use it? Where on which layer does this get pasted?

    Thanks for the help!

    L = thisComp.layer("text");
    rect = L.sourceRectAtTime(time,false);
    x = L.toComp([rect.left+rect.width,0])[0];

    So something like this would position a layer 10 pixels to the right of the text:

    gap = 10;
    L = thisComp.layer("text");
    rect = L.sourceRectAtTime(time,false);
    x = L.toComp([rect.left+rect.width,0])[0];
    [x+gap+width/2,value[1]]

    Never Stop Learning.

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