I would try using an expression with the sourceRectAtTime() to push a right-aligned "Meeting with" layer to the left a certain amount based on the bold name layer's size.
hmm, can you elaborate?
You can use the sourceRectAtTime function in expressions to get the width of the name layer. Therefore, you can take the position of the name layer, minus half of its width and you will know the exact pixel position of the left side of that layer. Then, if you use that in the position for your "Meeting with" layer, it'll always land right up against the name layer. (I would suggest subtracting some arbitrary number more in your expression to scoot the "Meeting with" layer a bit further to the left so it's not actually touching the name layer.)
Or just add a space I guess, since I can precomp the whole thing. But holy hell this might be the solution, i'm gonna try this.
Let us know how it goes.
So thank you Szalam,
The short answer is NO, you can't have different styles in the same text layer with Motion Graphics.
However, if you plan to achieve that because you want the total variable width of both styles to be centered at all times then you can do it. here's how i did it:
- Create 2 separate text layers, one for each style
- Make them aligned to the left and move them how you want them to appear next to each other
- Parent the second one to the first one
- In the X position of the first one (so the whole thing since the second one is parented) use this expression:
Text1 = thisComp.layer("myfirstLayer");
Text2 = thisComp.layer("mySecondLayer");
Text1info = Text1.sourceRectAtTime(time);
TotalWidth = Text1Width + Text2Width;
(thisComp.width - TotalWidth)/2
This should only work if Text1 doesn't change width, but by aligning it to the right instead and fiddling a bit with the script the whole thing should work.
I'm glad you found a solution.