Hey Thanks for this! I used the first one and it works like a charm
a=thisComp.layer(index-1).sourceRectAtTime();
t=a.top;
h=a.height;
som = t+h/2;
p=thisComp.layer(index-1).position[1]
fs=text.sourceText.style.fontSize
y1 = (p+h+fs);
y2 = (p+som/2);
x =thisComp.layer(index-1).position[0]
try{
thisComp.layer(index-1).text.sourceText;
isText = [x,y1];
}catch (e){
isText = [x,y2];
}
This basically will space out any text layers below the above text layer by the font size but because the title its own comp I needed to calculate the spacing differently, seems to work cheers