-
sourceRectAtTime
Hello,
I have a problem with sourceRectAtTime expression. I would like to create a box around text, which always has an equal size on width and height. Basically, I want to create a square, which has the same width and height, when I type a different number or I a scale number.
Picture of my comp: https://www.dropbox.com/s/vi3xgtxj86jpylb/AE-Box.PNG?dl=1
As you can see, if I write down the number 1, width and height are not the same. Is it possible to always keep the same values for width or height?
Thanks for the help,
SasoExpression on size property:
var s = thisComp.layer("1");
var w = s.sourceRectAtTime().width;
var h = s.sourceRectAtTime().height;
[w,h]