AE導(dǎo)入lrc歌詞
1)新建合成
2)文件->腳本->打開腳本編輯器
3)輸入以下代碼執(zhí)行,選擇要導(dǎo)入的lrc文件

var item = app.project.activeItem;
var file=File.openDialog();
var added=false;
function addLine(t,s)
{
? ? item.layers.addText(t);
? ? item.layer(1).inPoint=s;
? ? if (added) { item.layer(2).outPoint=s; }
? ? added=true;
}
function parseLine(line)
{
? ? var x=line.match(/(\[\d\d:\d\d.\d{3}\])(.*)/);
? ? if (!x) return null;
? ? var s = parseInt(x[1].slice(1,3))*60;
? ? s += parseInt(x[1].slice(4,6));
? ? s += parseInt(x[1].slice(7,10))/1000;
? ? return {start:s,text:x[2]};
}
if (file && file.open("r")) {
? ? var c = file.read();
? ? file.close();
? ? var lines = c.split('\n');
? ? for (var i=0; i < lines.length; ++i) {
? ? ? ? var t = parseLine(lines[i]);
? ? ? ? if (!t) continue;
? ? ? ? addLine(t.text,t.start);
? ? }
}

注:
item指向不明
layer是指圖層
版本 AE? 2019