Tutorial: Automatic Lower Third Size
// Use a text layer called NAME and one called FUNCTION. Use caps in the layer name!
// Put this script onto the position of a solid that you use to mat or cut the entire lower third.
// Set the cutting solid in the right position like you normally do, just this once to prepare it.
// The solid will now react to the length of the NAME and FUNCTION, depending on which is longest.
NW = thisComp.layer("NAME").sourceRectAtTime().width;
FW = thisComp.layer("FUNCTION").sourceRectAtTime().width;
b = (NW < FW);
[value[0]+(FW*b)+(NW*!b),value[1]]
