Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions fix a left-aligned text layer with them right edge at an certain position

  • fix a left-aligned text layer with them right edge at an certain position

    Posted by Detlef Maerz on August 16, 2018 at 8:48 am

    Hey guys,

    i’m searching for a solution for a expression to fix a left-aligned text layer with them right edge at an certain position or right edge of the composition automatically?

    Do anybody have an idea?

    Thank you guys!

    Detlef Maerz replied 7 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Scott Mcgee

    August 16, 2018 at 4:03 pm

    in anchor point firstly

    r = sourceRectAtTime();
    [r.left + r.width, r.top + r.height/2]

    This will automatically place the anchor point always to the right hand side.

    Then in position.

    x = 150; //(you can assign it to a slider swell if you want multiple.)
    y = value[1];
    [x,y]

  • Detlef Maerz

    August 20, 2018 at 1:32 pm

    Thank you so much!!!
    It works perfectly!

    Best regards!
    Detlef

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