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 pmHi 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 pmHere’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 pmThere’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 -
Yoan Boisjoli
November 2, 2024 at 2:51 pmHi 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 pmOK, 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 pmIf 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;
Reply to this Discussion! Login or Sign Up