Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Align Paragraph Text to middle of box?

  • Richard Clabaugh

    January 17, 2013 at 2:18 am

    Curious 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 Name

    and the care for…

    Produced By
    Producer A. One
    Producer B Two
    Producer C. Three

    BOTH 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 pm

    I’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!

  • Cristian Andrei

    July 9, 2013 at 6:37 pm

    Anyone? :-s

  • Robert Paynter

    July 19, 2013 at 2:56 pm

    I need this badly.

    Any new info?

    Adobe?

  • Cristian Andrei

    July 19, 2013 at 5:15 pm

    Looks like this is a wall. 😐

  • The Marshall

    September 30, 2015 at 6:29 pm

    Over 2 years later and even I’m now looking for a solution!

  • Kalleheikki Kannisto

    October 1, 2015 at 5:41 pm

    Use 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 pm

    Kalle, 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 pm

    Copy the expression to the text layer’s Position property.

  • Enrique Rovira

    February 26, 2016 at 5:14 pm

    Thanks 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.

Page 2 of 3

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