-
Trying to get a lower third template working
Hi all,
I’m trying to get a lower third template working but not having much luck.
I have three lines of information, and I’d like my rectangle to change size depending on which field is longer.
I’ve gotten pretty close with the following expression:
a = thisComp.layer(“Name”).sourceRectAtTime(0).width+98
b = thisComp.layer(“Job Title”).sourceRectAtTime(0).width+98
c = thisComp.layer(“Company Name Further Information”).sourceRectAtTime(0).width+98
if (a>(b||c)){
x=a;
y=7.5;
[x,y]
}else{
x=Math.max(b,c);
y=7.5;
[x,y]}
but it just doesn’t seem to quite work. It seems to only recognise the input of the “name” or “job title” fields.
I’ve been trying to figure out what I might be missing here, any help massively appreciated!