Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Fitting sentence text within a pre-established box (splitting lines)

  • Fitting sentence text within a pre-established box (splitting lines)

    Posted by Matthew Ingram on November 2, 2024 at 2:30 pm

    Hi there,

    I’ve had a good look around – I can find lots of tutorials which create a box around pre-established text. But none the other way around 😭

    With this, I could have a set sized box and then fill it with text (actually coming in from a CSV) and have the lines automatically split.

    This would be such a great help.

    Thank you.

    Yoan Boisjoli replied 3 months, 2 weeks ago 2 Members · 6 Replies
  • 6 Replies
  • Yoan Boisjoli

    November 2, 2024 at 2:36 pm

    Here’s a helpful tutorial:

    https://youtu.be/-n0RKDlbGas?si=abArBOJvLzdZy0NZ

    Is this what you’re aiming for?

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Yoan Boisjoli

    November 2, 2024 at 2:38 pm

    There’s also this tutorial where it’s well explained:

    https://youtu.be/flnRYVMbMmQ?si=Ejxt5r98d4XQY7wb

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Matthew Ingram

    November 2, 2024 at 2:47 pm

    Thank you very much, Yoan. But this doesn’t quite do what I need to.

    To explain myself better – in Illustrator (see attached images) when you create text within a box it automatically splits the lines.

    Is there any way of doing that?

  • Yoan Boisjoli

    November 2, 2024 at 2:51 pm

    Hi Matthew! Are you talking about a paragraph text box?

    In after effects if you simply drag a square with the text tool you can make a paragraph text box.

    Let me know if this is what you are referring to.

    Cheers.

  • Matthew Ingram

    November 2, 2024 at 2:51 pm

    OK, I’ve achieved this by splitting the lines in the CSV document. Would still be curious! Thank you again.

  • Yoan Boisjoli

    November 2, 2024 at 3:03 pm

    If you set up a paragraph text box in After Effects, you can use an expression on sourceText to pull in text from your CSV and it’ll split the lines automatically to fit within the box. Something like this:

    txt = footage("yourCSVfile.csv").dataValue([0, 0]); // Change this to point to your CSV file and correct cell

    txt;

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