After Effects脚本 - 将音频转换为关键帧?

时间:2015-05-18 00:02:21

标签: javascript audio after-effects

你怎么做"将音频转换为关键帧"在后效应中使用脚本,手动右键单击"声音"层>关键帧助手>将音频转换为关键帧。

var myComp = app.project.activeItem;
var musicComp = myComp.layer("music");

var myEffect = musicComp.property("Effects").addProperty("High-Low Pass");
myEffect.property("Filter Options").setValue(1);
myEffect.property("Cutoff Frequency").setValue(50);

// then I want to do "convert audio to keyframes" 

1 个答案:

答案 0 :(得分:1)

答案提供者:Walter Soyka

app.executeCommand(app.findMenuCommandId("Convert Audio to Keyframes"));