Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions text paragraph expression

  • text paragraph expression

    Posted by Ian Cross on April 17, 2019 at 10:34 pm

    Hi
    So, I have a text box, in which I wish the line to appear above when i press return, rather than below. Do i need an expression for this or is it something native in AFX that Im missing?
    If it can be done using an expression, could someone share it with me please? Be most apprecaitive.
    Ian

    Ian Cross replied 7 years, 4 months ago 2 Members · 4 Replies
  • 4 Replies
  • Andrei Popa

    April 18, 2019 at 7:48 am

    You can add Line Spacing animator and set the second value to negative.

    Andrei
    My Envato portfolio.

  • Ian Cross

    April 18, 2019 at 8:02 am

    Andrei
    Thanks. I’ve tried that but the first line stays in place and you end up with the second line on top, I want the first line to move up, and the second line below, as it normally would.
    Thoughts?
    Ian

  • Andrei Popa

    April 18, 2019 at 1:32 pm

    I see. Maybe apply this to anchor point?

    var myHeight = sourceRectAtTime(time,false).height;
    var top = sourceRectAtTime(time,false).top;
    [value[0],myHeight+top]

    Andrei
    My Envato portfolio.

  • Ian Cross

    April 18, 2019 at 3:49 pm

    Andrei
    You’re a star. Much obliged to you. Worked a treat.
    Thanks again.
    C

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