I am making a modular lower third kit, I have a shape layers' width (lower third box) controlled by the length of 2 text layers in a comp, with the shape resizing (from left centre) based on which text layer is wider.
I have animated a new shape layer (small ellipse) across the width of this box, but would like the end position of this new ellipse to automatically adjust according to the user changeable lower third box (driven by text width). This action also ideally happens some seconds into the comp, and there is also some existing keyframing of the text into position, but will remove if necessary in order to make this possible.
I think what I'm essentially trying to do is match a shapes positional keyframe at a point in time to a (in this case) scale value of another layer.
Is a null the answer to this? I hope this makes sense.
Here is a screenshot of the comp, and expression for the lower third box below.
This is a still preview of the composition
From a relative and very grateful noob!
s1=thisComp.layer("FIRST NAME GOES HERE");
s2=thisComp.layer("THEN TYPE WHAT YOU WANT ALONG THE BOTTOM");
x = Math.max(w1,w2);