ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Textbox, align text vertically to bottom

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Bas v Breugel
Textbox, align text vertically to bottom
on Aug 16, 2019 at 2:12:59 pm

I am searching the forum for a way to align texts vertically to the bottom inside a text box. Read some sourceRectAtTime expressions, but no succes on adding this to my text layer. This expression has to be added to the Anchorpoint right?

Ideally adjusting the box with the mouse cursor does not influence the expression. For example for the box to be bigger.



Return to posts index

Andrei Popa
Re: Textbox, align text vertically to bottom
on Aug 29, 2019 at 8:16:34 am

Add this to the anchor point. I hope this is what you are looking for


var left = sourceRectAtTime(time,false).left;
var top = sourceRectAtTime(time,false).top;
var myWidth = sourceRectAtTime(time,false).width;
var myHeight = sourceRectAtTime(time,false).height;
var x = left;
var y = top + myHeight;
[x,y]

Andrei
My Envato portfolio.


Return to posts index

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