Activity › Forums › Adobe After Effects › Align Paragraph Text to middle of box?
-
Align Paragraph Text to middle of box?
Marcin Wojtas replied 6 years, 4 months ago 16 Members · 27 Replies
-
Richard Clabaugh
January 17, 2013 at 2:18 amCurious if anyone finds an answer to this. I’m doing title cards for a film and need them all centered both vertically and horizontally, even though they are of different lengths and sizes. Thus both the cards for…
Directed By
Director’s Nameand the care for…
Produced By
Producer A. One
Producer B Two
Producer C. ThreeBOTH cards must be centered. I’ve got 26 cards like this and aligning them each manually seems prone to errors. I’m sure someone must have a simple and easy way to do this as I’m sure it’s a common task.
-
Cristian Andrei
July 1, 2013 at 10:31 pmI’m very curious about this problem. How come nobody has found a solution to this?
I’m facing this problem and I don’t have any idea how to handle it.
Is there any script out there that can help solve this issue?
Please, if anyone can help with this post a reply or point out to a path where a solution can be found.
Thanks!
-
The Marshall
September 30, 2015 at 6:29 pmOver 2 years later and even I’m now looking for a solution!
-
Kalleheikki Kannisto
October 1, 2015 at 5:41 pmUse this for text layer position after aligning it to the center:
S = thisLayer;
x =transform.position[0];
y =transform.position[1];
rect =S.sourceRectAtTime(time,false);
y_offset = rect.height/2;
[x,y-y_offset]
-
Richard Clabaugh
October 10, 2015 at 10:20 pmKalle, it appears you are suggesting an expression based solution, which is fine, except I am unclear on the implementation. Could you please elaborate on this with an example, as in “type this expression into this place.”
I think we were hoping for a simple command or keystroke solution that would consistently “center” a text box, but I’m open to anything that works here as this problem continues to come up in work and I’m SURE it’s not hard.
-
Kalleheikki Kannisto
October 13, 2015 at 5:28 pmCopy the expression to the text layer’s Position property.
-
Enrique Rovira
February 26, 2016 at 5:14 pmThanks Kalle, this worked for me!
Only I had to take out the: /2
on the: y_offset = rect.height;
To ensure the lower margin of the text stayed on the same place.After applying the expression my text jumped slightly but you can still manipulate the x and y values for the position to adjust the text layer.
Reply to this Discussion! Login or Sign Up