I have two layers: a single line text layer (“Name”) and a logo layer. The logo needs to stay the same distance from the right edge of the text, no matter how long the text is. I separated the x & y values of the Position of the logo and used the attached expression on the X Position and it works really well.
(If you sensed a “however” coming, you’d be right and here it is…)
HOWEVER the text layer needs to scale (controlled by a slider) to make sure longer names stay on the screen and the expression can’t account for the scale; it only reacts to the length of the text layer.
What should I be adding to the expression so the logo stays the same distance from the from the right edge of the text, based on both the length of the and the scale?
Simply adding the scale property doesn't work, as AE sees it as an objective number and just adds the number.