expression ae: i have two layeres and i want link with maximum size but font size to be same?
I have layer 1 , and layer 2, but maxium size width of layer i can set by scale expression. but i want to have both layers maximum width but same font size. how to do it?
for scale of text layer for maximum width and hight i use this expression:
maxW= thisComp.width * 0.30;
maxH= thisComp.height * 0.04;
r = sourceRectAtTime(time);
h = r.height;
w = r.width;
s = w/h > maxW/maxH ? maxW/w : maxH/h;
[100,100]*s
But now want both layere are linked with max width but have font size same. if both layers are separate they have more and less number of characters and their font size differs, now i want to have both have same font size , with maximum width linked for both layers.
