-
Position of Image controlled by two Right Justified Text Layers… Help!
I am trying to control the position of an image(lower third backplate .mov file)that slides from the right side. I want the position to move toward the left as the text characters increase. I need two lines of right justified text. By some miracle I was able to make the top line do it, but cannot seem to make the bottom line control the length as well. I need the bottom one to work because most likely it will contain more characters than the top. So basically, which ever layer has more text will control the position of the image. Anyone have any idea how to make both layers share control of the position?
This is the expression on the backplate/.mov I have that works with the top text line(Line 1)
L = thisComp.layer(“Line 1”);
rect = L.sourceRectAtTime(time,false);
x = L.toComp([rect.left+525,0])[0];
[x, 540]
I need the bottom text line(Line 2) to also control the same .mov/image.
On the images you can see when I add spaces to the top line, the position moves with it.
The bottom line, doesn’t work at all.
I’d really appreciate some help with this… Thanks!
