this has been finally solved. I’d like to give credit to Laurent Lavergne. I am including a copy of the project and the 2 lines of code;
on the multiline text layer this needs to be added to the sourcetext;
const theText = text.sourceText.value;
const lines = theText.split(/\r/);
(time < inPoint) ? lines[lines.length-1] : theText
and on the other layer which could be anything ( a precomp, a text layer, an imported logo ), add to the position x this code;
const posRef = thisComp.layer(“text”).transform.xPosition;
const widthRef = thisComp.layer(“text”).sourceRectAtTime(-1, false).width;
value + widthRef
and to the y position this code;
const layerRef = thisComp.layer(“text”);
const theText = layerRef.text.sourceText;
const lines = theText.split(/\r/);
const numLines = lines.length -1;
const textLeading = theText.style.leading;
value + numLines * textLeading