Create a rectangle with automated rounded edges :
โ
โ
You need a rectangle with rounded edges, to which you add the following expression to the "Rounded" attribute:
โ
rect = content(1).content(1).size;
(rect[0] < rect[1]) ? rect[0] / 2 : rect[1] / 2;
You can now freely change the rectangle size and the rounding will change automatically.