-
Auto-justifying/Auto-linebreaking text for subtitles?
So I’m using a script to auto-import subtitles from a .txt file into a text layer (pt_ImportSubtitles, works great if anyone is interested! https://aescripts.com/pt_importsubtitles/) based off of timecode. It changes Source Text keyframes of a text layer. I then have the source text of that layer pick-whipped into the source text of a text box layer so that it doesn’t pass title safe. The issue that I’m running into is that I have a lot of orphans showing up. What I want is for the text box to auto-magically resize itself so that I can get from something like:
There’s a lot of green grass around the hill that really emphasizes
the look.To, instead:
There’s a lot of green grass around the
hill that really emphasizes the look.The catch, of course, is that it has to have the ability to resize itself every time the source text changes. Basically, each time the text box word wraps, it needs to auto-resize itself so that the lines match up as evenly as possible. Yes, I could go through and put in all the line breaks manually, but this project has over 1300 lines of dialog and has to be translated into 16 languages, so that’s not really a practical consideration. Am I just stuck with orphans? I’m only a basic AE scripter (Pick whip is my friend!), so I’m unable to figure this one out on my own and I haven’t found anything in search that quite does what I need.