Lower third template using Essential Graphics issue
Hello great people!
I am making a lower third template for a client in After Effects and need it to be dummy proof and editable inside Premiere Pro.
The lower third template has two lines of text: name and title. The two lines of text use different fonts with a different font size for hierarchical purpose. Behind the text there is a shape layer that automatically resizes to the width of the text. For this auto-resizing to work my two lines of text are placed inside the same Text layer (with a line-break to separate the two lines) so that the "sourceRectAtTime" code on my shape layer scales to the widest of the two lines.
I have exported this whole composition as an "Motion Graphics Template" through the Essential Graphics panel and it's imported into Premiere Pro without problems. Everything looks as it should until I try editing the Source Text. When doing so my second line of text is suddenly formatted the same as the first line (same font and size). So my question is simply if there is a way around this?
Here are three possibilities I have considered:
1. Separate the lines into two text layers
But how do I then get the "sourceRectAtTime" to pick the width of the widest/longest line of text? Is this possible somehow using if/else commands?
2. Separate the lines and precompose
But then the "sourceRectAtTime" extracts the width of the entire precomp, not just the width of the text.
3. Define shape layer width through a slider control
Instead of auto-resizing the box I could define the width of the shape layer through a slider that I include in the Essential Graphics template, but then I won't have control of the margins, and I do not trust the client to use it correctly.
I would immensely appreciate any help I could get!
Thank you very much for your time!
