"can't turn value into number" when selecting rectangle's size with an expression
hi everyone !
I've been struggling with an issue that i can't find a fix for.
I am trying to reuse the size of a rectangle to determine the position of another element in my scene, using expressions. (I am making a lower thord template that resizes automaticlly with the text tou type in)
I am using this expression :
w = thisComp.layer("RECTANGLE BLANC").content("Rectangle 1").content("Tracé rectangulaire 1").size[0];
thisLayer.xPosition = thisComp.layer("RECTANGLE BLANC").xposition + w/2;Even if "w" is defined, and contains something like 399.2948496165198 (i've used throw new Error() to debug), AE sends me this error : "can't turn value into number" (translated from french) at the fisr line of my expression.
I've tried to parse, to floor, but nothing seems to work..
Does anyone have any suggestions ?