Hello guys,
Here is the situation. I have a CEP panel in AE with bunch of buttons, where each of them runs different functions of a .jsx script. One of these buttons is "Check AE", which checks if everything is correctly setup in AE for the other scripts to work properly. As part of this function I need to somehow create stretched versions of all .wav files I have in AE to 120%. I need physical .wav files for the other script to work. It cannot be another layer with 120% duration.
So I have created a new comp for each .wav in project with 120% duration and inserted the wav file there with 120% stretch. But when I add it to renderqueue, there is no default render template for .wav and with the setSettings() function, the format is not settable. I know I can create a new template for wav, but I need to run this script on a lot of computers without loading the template manually first. Is there a way i can load the template with script?
Second option I tried is to send these new comps to AME. Even though AME has a default .wav preset, it uses the last used preset and the change of the preset is not settable as far as I know. Is there a way how to set the default wav preset?
Another possible option i have thought of is that you can create scripts with extendscript for Audition. But i haven't worked with audition and couldn't even find any good guide for scripting and I am not even sure if I can run script for Audition from CEP panel in AE. Can I run it somehow? What would be the code for the script to import files to Audition, stretch them to 120% and saving them as wav in a different folder?
Is there some other way I could do this i didn't think of?
Thanks in advance for suggestions,
Martin