Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Dec 02, 2021 Dec 02, 2021

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.

TOPICS
Expressions , Scripting
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 02, 2021 Dec 02, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 03, 2021 Dec 03, 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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2021 Dec 03, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 03, 2021 Dec 03, 2021

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

 

Thank you!

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2021 Dec 04, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 04, 2024 Apr 04, 2024

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

Why can't adobe do this 😞

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 05, 2024 Apr 05, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 05, 2024 Apr 05, 2024
LATEST

This opens up nice options when exporting mogrts!

Finally you can have multiple lines with different fonts/sizes and it all works in 1 box!

no matter what line is longest.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines