Expression prevents multi coloured text, how to fix
I have been looking around the Internet for a blinking cursor type effect. Found a couple different solutions, but this one worked the best for me : http://cgi.tutsplus.com/tutorials/quick-tip-type-on-text-preset-with-blinking-cursor--ae-18769
It works great! Problem is I want multi coloured text and if I apply this expression to my text, it becomes one colour. I know pretty much nothing about expressions, so I have absolutely no idea why this happens. The other expression based solutions worked fine with multi-coloured text. You can find the expression below, it's mainly gobbledygook to me
... Was hoping someone here would know of a workaround or solution?
L = text.sourceText.length;
PT = time - thisLayer.inPoint;
T = PT *effect("Speed")("Slider") - effect("Start At")("Slider")*effect("Speed")("Slider");
F = Math.round(PT% 1);
if(F == 1 | (T<L & T>0) ){Fl = "_";}else{Fl = "";}
substr(0,T) + Fl