Thanks for getting back to me John.
Yes, here are the expressions I have in each text box’s rectangle path properties:
For the size, I’ve used this expression:
margin = 40
b = thisComp.layer(‘SUBHEADING TEXT’);
w = b.sourceRectAtTime(time-b.inPoint,true).width;
h= b.sourceRectAtTime(time-b.inPoint,true).height;
x= w + margin*2;
y = h + margin*2;
[x,y]
For the position I’ve used this expression:
margin = 50
margin = 40
b = thisComp.layer(‘SUBHEADING TEXT’);
w = b.sourceRectAtTime(time-b.inPoint,true).width;
h= b.sourceRectAtTime(time-b.inPoint,true).height;
text_height = (h + margin*2);
[0, text_height/2]