Thank you so much!!! that really helps man…I am new to scripting and especially new to “toWorld” expression. Made a few tweaks on my side to work as I needed. Final expression is bellow
L = thisComp.layer("bar");
r = L.sourceRectAtTime(time,false);
s=L.toWorld([r.width/2,r.top]);
[value[0],s[1]];