-
Shape Rectangle roundness scaling with size?
Hi
I am setting the size of a rectangle with SourceRect of a text box, = a control slider for padding.When the padding is at zero the Roundedness of the Rectangle is correct, but when this is increased, the roundedness also increases.
I assume this is an order of operations thing, but normally size changes do not effect roundedness.
Any tips?
This is the expression on the rectangle:
var s1=thisComp.layer(“Line 1”);
var s2=thisComp.layer(“Line 2”);
var w = thisComp.layer(“CONTROL”).effect(“LARGEST WIDTH”)(“Slider”)+thisComp.layer(“CONTROL”).effect(“PADDING”)(“Slider”);
var h =(s1.sourceRectAtTime(-1, true).height)+(s2.sourceRectAtTime(-1,true).height)+thisComp.layer(“CONTROL”).effect(“PADDING”)(“Slider”);
[w, h]