expression result must be of dimension 2 not 1+sourceReacTatTime
Hi I'm trying to create a responsive textbox
Eventhough Im following EAbrahams instruction I got the following
message
this script is under shape layer, Rectangle/Rectangle Path/ Size and 'text' is the text layer
t=thisComp.layer("text").sourceRectAtTime();
w=t.width;
h=t.height;
(w,h)
expression result must be of dimension 2 not 1

where is the bug in this ?
even if I try other the other guys script(https://www.youtube.com/watch?v=CVliDoNgoCg)
var t=thisComp.layer("text");
var w=t.sourceRectAtTime().width;
var h=t.sourceRectAtTime().height;
(w,h)
I got the same "expression result must be of dimension 2 not 1" message, Im a noob, but this is surreal.
If anyone have an idea, it would be appreciated.
