-
try catch(err) for sourceRectAtTime expression
Hi guys, the scale expression shows an error if no text is entered or there are only spaces instead of characters.
How to catch errors so that in these cases the values are equal [0,0]?R = sourceRectAtTime(sourceTime(time), true);
w = thisComp.width / R.width * 95;
h = thisComp.height / R.height * 60;
s = Math.min(w, h);
[s, s]
Thanks in advance!