简体   繁体   English

效果:如何使用表达式(或其他脚本方式)更改音频源?

[英]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 attributeonStatusChanged执行更改。 (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.

相关问题 使用After Effects表达式触发音频文件 - Using After Effects expressions to trigger an audio file 更改幻灯片后如何更改音频源? - How do I change audio source after changing slides? 超能力:有没有办法在对音频应用效果后将输出缓冲区保存到文件中? - Superpowered : Is there a way to save the output buffer to a file after applying the effects on audio? 如何在Unity 5中使用C#按比例更改3D对象的比例和音频源的半径? - How can I change the scale of a 3D Object and the Audio Source's radius in a proportionally way in Unity 5 using C#? 有什么方法可以使用音频文件作为MediaRecorder的来源? - Is there any way to using audio file for source of MediaRecorder? After Effects脚本-将音频转换为关键帧? - After Effects scripting - convert audio to keyframes? 如何使用 <audio> 使用JS / jQuery在HTML5中添加标签? - How to play one track after other with <audio> tag in HTML5 using JS/jQuery? 如何在连接或移除外部麦克风时更改音频输入源 - How to change audio input source when external microphone is attached or removed 将音频流URL与wpaudio或任何其他此类脚本一起使用 - Using an audio stream URL with wpaudio or any other such script 无法更改音频源 - Can't change audio source
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM