Skip to main content
jason_or_jay
Inspiring
December 2, 2021
Question

Mogrt for Premiere lower third with TWO or more text layers in one auto-scaling shape layer.

  • December 2, 2021
  • 3 replies
  • 1841 views

I'm able to create a mogrt for lower thirds, but with only one layer of text. I've tried a solution recommended in the AE forum repeatedly, but it has no effect on my second layer of text. I'm learning expressions, so my understanding is VERY basic. I've watched a dozen soureRectAtTime tutorials hoping for a breakthrough, and I've read a bunch of posts as well. My limited knowledge is surely the problem, and I'd really like to understand what I'm doing wrong so that I can progress (and make this .mogrt work).

 

Thank you.

This topic has been closed for replies.

3 replies

Mathias Moehl
Community Expert
Community Expert
December 4, 2021

The easiest thing to do is probably using my extension Pins & Boxes:

https://aescripts.com/pins-and-boxes/

If you hurry up, you might still get 25% off using the coupon code CYBER, which officially expired a few hours ago.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Multipasser
Inspiring
April 5, 2024

Amazing.. tested out the demo. It works at leats.

Why can't adobe do this 😞

Mathias Moehl
Community Expert
Community Expert
April 5, 2024

Great to hear that it is working!
As any company also Adobe has limited resources and needs to focus on what most of their users need. For everything else, the third party developer ecosystem is here to fill the gaps 🙂

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Mylenium
Legend
December 3, 2021

If the texts use the same parameters, you may need to just add the two heights rather than using Math.max(). So for the height value it would be:

 

s_h+t_h+(optional padding value)

 

As for learning I can't really point to specific sources, but from a healthy dose of basic math to simply looking up generic JavaScript (for web design) to ActionScript (Flash/ Animate) tutorials and code snippets a lot of things will be useful. For such "geometric" problems it also helps to simply draw out stuff on paper and sometimes things just click when you see your bounding boxes and measurements.

 

Mylenium

jason_or_jay
Inspiring
December 3, 2021

Is this what you mean? It seems to have worked (mostly) and my head just about exploded.

 

Thank you!

 

 

Mylenium
Legend
December 3, 2021

Your second sourceRectAtTime() is still referencing the first text layer since it's s.blahblah, not t.blahblah. Of course this would produce the same results and make the expression redundant/ useless.

 

Mylenium

jason_or_jay
Inspiring
December 3, 2021

Thank you! I know it seems painfully obvious...but it's tough to wrap my head around.

 

I seem to have half fixed it. The shape layer is now the length of the longest text layer, but still only the height of one text layer. Is it in my Math.max code?

 

 

Also, could you recommend a good source for learning basic scripting skills?

-Jason