-
Change color of a single character using expressions.
Im using this expression to create a blinking cursor animation:
I want the “|” character to be a different color, the fact that it’s blinking makes it a little more difficult as it is not always the last character in the string. Some way to change it’s color? Using expressions or any other method.
Thanks!
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 | (T0) ){Fl = "|";}else{Fl ="";}
substr(0,T) + Fl
