Skip to main content
hall123456
Known Participant
December 17, 2022
Open for Voting

Feature Request: The ability to control paragraph text height & width via expressions

  • December 17, 2022
  • 5 replies
  • 278 views

Dynamically being able to set the height and width of a text layer iwth an expression will simplify and reduce layers and comps in complex projects, imporving Render and organization challenges.

 

thanks!

5 replies

Mike Choo
Inspiring
August 17, 2026

Big yes to this - anything that makes responsive design more accessible is super-welcome.

Being able to replace a whole set of custom expressions with one native one means less to go wrong and that extra bit less processing overhead needed, which is always good!

Roland Kahlenberg
Legend
August 12, 2026

This has been possible for ages. It’s not easy but it’s not rocket science either. As you already know, it does require expressions. I do have a rather advanced and longish course that covers this and even more advanced Responsive MoGraph stuff. I am also thinking of developing a shorter course that delves into advanced MoGRTs such as the one you’re alluding to but it’s going to take time. 

With LLMs etc, it should be much easier now to crack the ‘secret’ code - so, it’ll be much better pursuing it on your own if you’re in a rush - I know OP posted 3 years back but since someone posted just yesterday … 

I just want to make it clear the initial request is doable in After Effects and for quite a long while. 
 

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
sskaz
Inspiring
August 13, 2026

Paragraph/box text is more capable than just text that automatically wraps at the bounds. Margins, first-indents, left/right/justified alignment that fits to the left/right bounds, hanging punctuation, and the Every-line Composer to avoid widows/orphans are all native and built-in with the UI.

 

All of that might be possible with extravagant workarounds by burning up LLM tokens, but a simple setTextBounds(width, height) would go a long way to eliminating 100+ lines of expressions to duplicate existing functionality in the UI that can already be done with scripting but not expressions.

 

sskaz
Inspiring
August 11, 2026

Same here. I’m creating mogrts that appeared simple: shove some custom text into a dynamically sized rectangle that slides in/out of frame, and I’m forced to use complicated expression workarounds  to measure the width of text (via sourceRectAtTime() or counting characters) and insert a line break character at an optimal location… Or just have the editor insert manual line breaks. Which is… fine, but sometimes gets screwy when copying and pasting from janky emails and Word docs. But also, most editors are not typographers and don’t understand widows or orphans.

 

For fun, I tried making the text box bounds the width of the comp and using .setLeft/RightMargin(), but eventually hit the secret maximum margins of 1296 (It seems all paragraph options cap out at 1296—even in other Adobe apps like Illustrator). Which is not enough in the days of 4K.

hall123456
Known Participant
February 8, 2024

Looking forward to having this in ae soon!