Skip to main content
Known Participant
July 29, 2019
Answered

Why does font case change when exported as .mogrt?

  • July 29, 2019
  • 1 reply
  • 4505 views

Hi,

I'm new to AE and ran into a problem I'm not sure has a fix.

I created a lower third graphic that has a line for the person's name and a 2nd line for their title. We wanted the first name to be regular case and the last name to be in bold. When I export as a .mogrt file then import into Premiere the name defaults to regular case, and it doesn't look like that can be changed in Premiere. Is there a way to do this, or does a text layer have to be all in the same font style?

Thanks

    This topic has been closed for replies.
    Correct answer Roland Kahlenberg

    Here's what I'm trying to do. I want the Name, the Title, and the length of the red Title box all to be editable in Premiere.

    I'm working with a videographer who does his editing in Premiere. In the past he would create static lower third graphics in Photoshop, import it into Premiere, and then just fade them in and out as needed, and each time he had a name/title change he had to go back into Photoshop. My plan was to provide him a single .mogrt file that he could import in then change the name/title all within Premiere. However, if the first name is in regular on one layer and the last name is in bold on another layer, what happens when you have different length first and last names? I need the last name to adjust with the first name. Putting them on separate lines won't work, as far as I can see.


    Looks like you'll require three text layers - one for FIRST, another for LAST and another for TITLE. And Rick's right in that you'll need to offset LAST from the right edge of FIRST and you'll want to use sourceRectAtTime.

    The solution is to offset the LAST layer from the right edge of the FIRST layer.

    Paste this Expression into the Transform>Position of the LAST layer -

    -------------------------------

    // declare target layer

    t = thisComp.layer("First Name");

    // declare the offset value in pixels

    offsetXpos = 50;

    // declare sourceRect

    tRect = t.sourceRectAtTime();

    // get location of right edge of target layer

    tBR = t.toComp([tRect.left+tRect.width,tRect.top+tRect.height]);

    // apply offset to xPosition of target layer and set yPosition to equal that of the target layer

    [tBR[0] + offsetXpos,t.position[1]]

    ---------------------------

    1 reply

    Mylenium
    Legend
    July 29, 2019

    Without any info on what fonts you used nobody can really tell you much. Of course faux caps and other stuff may get lost if it's not part of a genuine font but rather enforced font decorations. Conversely, certain intermediate weight fonts may simply not show up because automatic font grouping may not work. Impossible to say. You really have to provide much more info.

    Mylenium

    MrM2Author
    Known Participant
    July 29, 2019

    Thanks for your reply.

    I probably didn't explain the problem very well.

    Let's say you have a text layer that says John Smith and you want "John" to be in Helvetica Regular and "Smith" to be in Helvetica Bold. You export as a .mogrt file so that the name can be changed when you import it into the Essential Graphics panel in Premiere. However, when you place the .mogrt file into your timeline in Premiere the entire name "John Smith" is now in Helvetica Regular, it didn't keep the last name in bold. In the Premiere's Essential Graphics panel I tried selecting just the last name and changing it back to Bold, but it changes the entire name to Bold. Does this make more sense?

    Thanks

    Community Expert
    July 31, 2019

    Thanks Roland!

    I actually replied back to you yesterday, but for some reason it didn't send, that I went back into my file and figured out what I did wrong with your code and got it to work. I was THRILLED!

    However, I ran into another snag and wondered if you had a solution.

    Same file, I wanted the name to look like it slides out of the vertical red bar moving left to right. I set up a mask and everything worked great, including your code. I set the file up using a short name (say "Joe Smith"), and moved the right side of Smith right behind the vertical red bar. Imported the .mogrt into Premiere, worked great, everything was editable, retained the bold last name like I wanted. But, when I retyped a longer name (say "George Washington") part of the last name is already visible before the animation even runs. If I go back into AE and slide the name even farther to the left to allow for long names, then short names moving in at a different speed since they are positioned farther to the left of the vertical red bar and left edge of the mask. Any fix for this?

    Thanks


    I'm not seeing a screenshot of how you set up the comp but it sounds like you did not tie the position of the names to the sourceRecAtTime. The idea is to get the position of each text area to move.

    Select all layers, press uu to reveal all modified properties and post a screenshot. I don't have time to download Roland's example and look at it right now.