[英]After effects: How to change audio source using expressions (or other script way)?
I need to generate many videos that differs only by some Text objects and sound. 我需要生成许多仅某些Text对象和声音有所不同的视频。 So I use command "aerender" and expressions that get source text from enviropment varibles.
因此,我使用命令“ aerender”和从环境变量获取源文本的表达式。
I easially use expressions to change Sorce Text. 我可以轻松地使用表达式来更改源文本。 But I can't use it to change audio source.
但是我不能用它来改变音频源。 Option "Animation-> Add Expression" is inactive, when "Audio->Waveform" is selected on "Timeline" panel.
在“时间轴”面板上选择“音频->波形”时,“动画->添加表达式”选项无效。
So, how to change audio source using expressions (or other script way)? 那么,如何使用表达式(或其他脚本方式)更改音频源?
PS Audio is added using "File -> Import". 使用“文件->导入”添加PS Audio。 Shall I add audio using other way?
我可以使用其他方式添加音频吗?
You could use extendscript to duplicate your original comp, exchange the audio layer and add them to the render queue. 您可以使用extendscript复制原始伴奏,交换音频层并将其添加到渲染队列。
Or you can use the render queues RenderQueueItem status attribute
to execute the change on onStatusChanged
. 或者,您可以使用渲染队列
RenderQueueItem status attribute
对onStatusChanged
执行更改。 (Also in extendscript) This can execute a callback function where you could exchange your audio layer. (也在extendscript中)这可以执行一个回调函数,您可以在其中交换音频层。 This could be done in a recursive way.
这可以以递归的方式完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.