-
Expression to dynamically move layers to maintain similar distance if content changes.
Hi All.
I’m trying to find an expression that creates a set-space between layers (text/image/object) that dynamically moves to maintain same distance if text or objects are changed.
For example:
Say I have an image I want to offset a specific amount (say 50) to the right of a text line, then I have another text line I want to off-set the same amount to the right of the image.
I can’t use anchor positions as reference as they will change depending on the content, as will any formatting (if only text layers were involved), so believe I need an expression based on finding the edges of the bounding boxes.
I’d also like all the layers to stay centred to the overall comp. I think I can do with an expression I’ve found that I’ve attached to a null then parented objects I wish to centre to, but any other examples would be great too.
I’ve no expressions knowledge (not an AE person) and haven’t found any scripts online that help me so far, so any help would be appreciated as I have no idea how to go about scripting this.
Cheers