Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Amazing.. tested out the demo. It works at leats.
Why can't adobe do this 😞
Copy link to clipboard
Copied
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 🙂
Copy link to clipboard
Copied
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.