Well, the code obviously looks for the first space to determine the split. You would have to modify it considerably to make it work with real sentences, meaning you need some regular expression or nested string processing that ignores any spaces within the given range and still makes sure full words remain tied together. It's not as simple as you may have thought. I don't have time at the moment, but if you're not in a rush and I don't forget perhaps I can have a look at it over the weekend.
That would be very nice, I wasn't able to make a code that works.
I'm pretty new to complex expressions in After Effects, so any help would be more then appreciated!
Are you still facing this problem? If not, let us know how you solved it. If so, please let us know so we can assist you further.
I'm still facing the same problem, so any help would be much appreciated.
Maybe I'm misunderstanding the issue, but...
Can't you just drag out a text box (not just 'click and type') to be just slightly smaller than the size of your background shape?
Any text entered in Premiere via the Essentials Graphic panel would then word-wrap into that text box.
Or are you trying to do something else?
Who, I'm feeling stupid.
Sometimes the simplest solution are the beste.