Can anyone help me with this expression?
So I have this expression that's supposed to make my shape resize based on the text size. But for some reason, it doesn’t fully cover the text — it only covers part of it. I'm not very experienced with expressions, so I really can't figure out what's wrong. I put this expression in Rectangle Path - Size. Please help.
txt = thisComp.layer("Main Text");
x = txt.sourceRectAtTime(time, false);
txtlong = x.width;
sqwd = thisLayer.width;
t = time;
xPos = easeOut(t, inPoint, inPoint+0.5, 210, txtlong + 210);
[xPos, value[1]]

