ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

text paragraph expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ian cross
text paragraph expression
on Apr 17, 2019 at 10:34:53 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


Return to posts index

Andrei Popa
Re: text paragraph expression
on Apr 18, 2019 at 7:48:18 am

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

Andrei
My Envato portfolio.


Return to posts index

ian cross
Re: text paragraph expression
on Apr 18, 2019 at 8:02:27 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


Return to posts index


Andrei Popa
Re: text paragraph expression
on Apr 18, 2019 at 1:32:41 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.


Return to posts index

ian cross
Re: text paragraph expression
on Apr 18, 2019 at 3:49:17 pm

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]