Add this expression to the anchor point to center the anchor point to the middle:
———————————————————————-
l= sourceRectAtTime().left;
t= sourceRectAtTime().top;
h= sourceRectAtTime().height;
w= sourceRectAtTime().width;
[l+w/2,t+h/2]
—————————————————————————-
to center the text in the middle of the comp, add this expression to the position of the same text:
——————————————————–
cw = thisComp.width /2;
ch = thisComp.height /2;
[cw,ch]
———————————————————-