I have 4 layers that make up a lower third.
Name, Title, Name Box, Title Box
In Name Box, under contents>rectangle 1>rectangle Path 1>Size I have this expression:
(the sliders are there to give padding around the text)
Under contents>rectangle 1>rectangle Path 1>Position I have this expression:
content("Rectangle 1").content("Rectangle Path 1").size/2
(This is to keep things left aligned)
The Title Box has the same expressions, but referencing the layer "title" instead of "name."
What I'm trying to do is link the position of Title Box to the Name Box so that as the Name Box gets taller or shorter, the Title Box will remain the same distance from the Name Box.
What expression can I use to do this?I know I need to use sourceRectAtTime to find the height of the first box and somehow tell the
Similar to this, if you want them to be one under the other, you use the anchorPoint script. This is even easier. Set the anchorPoint to the top left for the bottom layer and bot left to the top layer. And let's say you want the bottom layer to be aligned vertically and with a 20 px space under the top. Top being Rectangle 1, this is the position expression: