-
Parse and remove any numbers from a text layer (Source Text)
Hi,
I have a text layer that gets the .sourceText from another layer’s markers. The problem is that these markers contain numbers that I want to remove from the string.
So the expression I now use on the Source Text is orignially Dan Ebberts.
This gives me a source text string like “11 hello world” and I want it to display just “hello world”.
Anybody know how to modify Dan’s excellent script to accomplish this?
m = thisComp.layer("Ketil");
n=0;
if (m.marker.numKeys > 0){
n = m.marker.nearestKey(time).index;
if (m.marker.key(n).time > time) n--;
}
if (n > 0) m.marker.key(n).comment else ""