Sam, thank you so much for this Idea of changing the width of the text, I just tried it and it works fine. I´ll try this with further adjustments!
For the moment I have found a solution that deals with some imperfections, but it works as I want it. I read out the length of the text and scale it down in two steps while reposition it approximately.
For the Position I wrote this expression:
textweite = thisComp.layer(“Filmausschnitt: “).sourceRectAtTime().width;
x = thisComp.width-textweite;
y = position[1];
if ((transform.scale[0]<100) && (transform.scale[0]>69)) {[2000-textweite,y]} ;
if (thisComp.layer(“Filmausschnitt: “).sourceRectAtTime().width>700) {[2080-textweite,y]} ;
if (thisComp.layer(“Filmausschnitt: “).sourceRectAtTime().width>800) {[2100-textweite,y]} ;
[x,y];
For the Scale I wrote the following:
if ((thisComp.layer(“Filmausschnitt: “).sourceRectAtTime().width>540) && (thisComp.layer(“Filmausschnitt: “).sourceRectAtTime().width<800)) {[80,80]} ;
else if (thisComp.layer(“Filmausschnitt: “).sourceRectAtTime().width>800) {[65,65]};
else value;
Your code works fine for the scaling, but the issue with the fixed position still remains…
Yours, Matthias