<div>Thanks for your reply.</div><div>
I tried the expression but it didn’t work. But I solved it !
I have 3 layers, 1 for the text, 1 for the rectangle and a last one for the triangle.
Both size et position of the rectangle (path not layer) are linked to the text.
What I did is type this in the position of the triangle (path not layer) and it worked !
p=thisComp.layer(“My Text Layer”).sourceRectAtTime();
w=p.width;
h=p.height;
l=p.left;
t=p.top;
[l,h+t]