Copy link to clipboard
Copied
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
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
offse
...Copy link to clipboard
Copied
IT'S WORKING!
Oh Man, that is awesome!
Thanks so much for sticking with this.
(sorry for the delays, working on about 1/2 dozen other jobs right now.)
Copy link to clipboard
Copied
Rats! Almost had it.
It works, but if you type a longer name it ends way to the right of the vertical red bar. The longer then name, the farther away it moves.
Copy link to clipboard
Copied
The Slider Control, Adjust 2nd KF, was to allow you to fix this issue as well as to eyeball how much space you want; between the first character of the First Name Layer and the Vertical Bar.
I've sorted out the script for the First Layer so that the first character of the First Name Layer is affixed right next to the Vertical Bar. You can then use the Adjust 2nd KF slider to manually adjust its distance to the Vertical Bar.
--------------------------------------------------------
Expression for First Name's position prop
--------------------------------------------------------
FIRSTlayer = thisLayer;
LASTlayer = thisComp.layer("Last Name");
fRect = FIRSTlayer.sourceRectAtTime();
lRect = LASTlayer.sourceRectAtTime();
startPos = thisComp.layer("VerticalBar").transform.position[0];
KF01 = [startPos - (fRect.width + lRect.width) + effect("Adjust 1st KF")(1), value[1]]
KF02 = [startPos + effect("Adjust 2nd KF")(1), value[1]]
Scalar=thisComp.layer("Scalar").transform.scale[0];
linear(Scalar,0,100,KF01,KF02)
Copy link to clipboard
Copied
Hey Roland,
I was on vacation last week and didn't get back to this until yesterday. I plugged in your new code and everything worked GREAT!
I REALLY appreciate you taking the extra time on this, I never would have figured it out.
Thanks again!
PS - Any suggestions on where a beginner should start to try and get a better grasp on expressions?
Copy link to clipboard
Copied
Aha! And not even a single photo of your vacation spot. TSK TSK TSK
😉
Thanks for reporting back.
Animoplex is good.
Dan Ebberts' www.motionscript is great.
Forums are great too if you manage to google sufficiently well. Good luck and have fun.
Copy link to clipboard
Copied
Ha! Unfortunately it wasn't that type of vacation (stayed home to work on projects I've been putting off.)
Thanks for the references, I'll check them out.
Copy link to clipboard
Copied
This is a great post. Thank you very much! It helped me as well!
It has been a long time but if you're still around: what parameters I should change if the alignment is on the right?
Copy link to clipboard
Copied
It depends on where the layer's Anchor Point is located. If it's to the left edge then all you need to do is to deduct/minus off the "Rect" value instead of adding it. Give it a try and let us know if it's working for you. If your attempts are not providing expected results, then share screen shots of your Comp Panel and the Timeline AND the Expression that you are currently using.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now