ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

New line based on width text expression

COW Forums : Adobe After Effects Expressions

Respond to this post   •   Return to posts index   •   Read entire thread

Matt Evans
New line based on width text expression
on Oct 5, 2018 at 2:16:18 pm

I'm hoping someone will be able to help me.

Is there an expression that could create a new line on a normal text layer based on a width I can set? I found the below expression by Dan Ebberts but it doesn't quite do what I need it to. This one does it based on characters whereas I will need to be based on width. Also, the other problem with this is that as it is based on characters words can be split apart when the new line is generated.

Unfortunately I can't use a paragraph text box.
I'm currently using compCode to convert my templates into code which I can run and insert into other projects. However, after speaking to the creator of compCode, it seems that the boxTextPos function in AE scripting doesn't work properly (writing not reading)

This means that any templates with paragraph text layers that I try to compcode does not get inserted properly, because I am unable to write the boxTextPos therefore the position of paragraph text layers is off.

If anyone is able to advise it would be greatly appreciated


Posts IndexRead Thread 

Current Message Thread:

© 2019 All Rights Reserved