Adding a clamp to sourceRectAtTime?
I have a lower third template in which I want to clamp the Y value of the “Size” property of a Rectangle Path on a shape layer. I want this shape layer to ignore scaling in “Size” Y beyond a certain value as it and the text animates on/off. The text gets quite all then scales down as it animates but I don’t want the box behind it to scale beyond a certain value. I’m having trouble figuring out how to incorporate a clamp or something similar into the expression I’m using below. If anyone has any tips on how to add a clamp to this I’d appreciate it!
h = thisComp.layer(“NAME”).sourceRectAtTime(time,false).height;
w = thisComp.layer(“NAME”).sourceRectAtTime(time,false).width;