Dear Dan!
I have a question about line breaks via script. I want to write a script that makes a text layer with an expression. It’s all good, and working but if I want to make line breaks in the final result, the break only appears in my expression. Do you have any idea?
myComp.layer("").text.sourceText.expression =
"try{"+"\r"+
"L=parent;"+"\r"+
"t=time-L.inPoint;"+"\r"+
"tF=timeToFrames(t);"+"\r"+
"t=timeToCurrentFormat(t);"+"\r"+
"t+ ' \r ' +tF;"+"\r"+ // that would be the problematic part. It breaks the expression, not the final result.
"}catch(e){"+"\r"+
"'select a parent layer'"+"\r"+
"}"