Anchor points expressions

BOTTOM LEFT

a = thisComp.layer(“Text1”).sourceRectAtTime();
height = a.height;
width = a.width;
top = a.top;
left = a.left;

x = left;
y = top + height;
[x,y];

BOTTOM RIGHT

a = thisComp.layer(“Text1”).sourceRectAtTime();
height = a.height;
width = a.width;
top = a.top;
left = a.left;

x = left + width;
y = top + height;
[x,y];

TOP LEFT

a = thisComp.layer(“Text1”).sourceRectAtTime();
height = a.height;
width = a.width;
top = a.top;
left = a.left;

x = left;
y = top;
[x,y];

TOP RIGHT

a = thisComp.layer(“Text1”).sourceRectAtTime();
height = a.height;
width = a.width;
top = a.top;
left = a.left;

x = left + width;
y = top;
[x,y];

CENTER

a = thisComp.layer(“Text1”).sourceRectAtTime();
height = a.height;
width = a.width;
top = a.top;
left = a.left;

x = left + width/2;
y = top + height/2;
[x,y];