-
Scale background to text
I’m using the first block of code to scale my background to a line of text, but I would like to also add a TITLE text layer. Can I use something like on the bottomto say either of the layers whatever is longest to determine the background size?
x = thisComp.layer("NAME").sourceRectAtTime().width+150;
y = value[1];
[x,y]------------------------------------
x = thisComp.layer("NAME" || "TITLE").sourceRectAtTime().width+150;
y = value[1];
[x,y]