准备工作:
01-新建文字层,输入文字信息;
02-对Source Text 连续K两个关键帧
03-给Source Text 输入表达式;
最终效果演示
Expression:
src_length = text.sourceText.length
first_key = text.sourceText.key(1).time;
last_key = text.sourceText.key(2).time
// 可自定义提示符号,预设为 "_"
prompt = [ "_", " " ];
// 目前打字显示位置
typePos= Math.round(linear(time,first_key,last_key,0,src_length));
i = Math.round(time % 1);
text.sourceText = substr( 0, typePos) + prompt[i];