This code works fine in a separate project, but in the current one, it errors with the index number of the layer as the result (which the source text layer doesn't like because its not a string). Whats going on here? It usually outputs a string...
t = thisComp.layer("SourceText").text.sourceText;
word = t.split("\r");