-
substr is not a function error
An expression that was working fine before, in fact it still does in the previous files where I applied it, now it’s reporting ‘substr is not a function’ as an error.
I didn’t change anything in the expression and haven’t updated my version of AE.
Can anyone help me figure out this cryptic error?
Thanks.
L = text.sourceText.length;
sp=thisComp.layer("xp").effect("Speed")("Slider");
st=thisComp.layer("xp").effect("Start At")("Slider");
PT = time - thisLayer.inPoint;
T = PT*sp-st*sp;
F = Math.round(PT % 1);if(F == 1 | (T0) )
{Fl = "|"}
else{Fl ="";}substr(0,T) + Fl