Adding a second output in Extendscript for Media Encoder
Hi,
I am using Extendscript to automate rendering from After Effects projects.
In the Extendscript toolkit, or through BridgeTalk, I can make the following work with AME cc:
var fnt = app.getFrontend();
var ech = app.getEncoderHost();
var exp = app.getExporter();
//The comp to be rendered
var cmp = "F:\\ProjectsAE\\AEProject.aep";
//AME presets to be used (I had to copy the epr files from their original location to a simple path for this to work)
var pst = "C:\\AMEPresets\\AVC-Intra Class100 1080 50i.epr";
var pst2="C:\\AMEPresets\\PAL DV Widescreen.epr";
//Output files without extensions
var out = "F:\\ProjectsAE\\Render\\AEProject_Onair";
var out2="F:\\ProjectsAE\\Render\\AEProject_Preview";
//This adds onair preset/output
fnt.addCompToBatch(cmp,pst,out);
//This adds preview preset/output for the same comp
fnt.addCompToBatch(cmp,pst2,out2);
//This starts rendering
ech.runBatch();
//This deletes the queue
//exp.removeAllBatchItems();
The problem is that two render items are added in the batch, one for each output preset.
I'd like to add both output presets to the same render item, so both can render simultaneously instead of one after another.
Is there an extendscript method to do so?
Is there some kind of documentation for AME extendscript?
The last "extendscript is unsupported for AME" messages date back from 2 years ago. Is anything supported by now?
Even if it's preliminary or beta, I'd love to know how to use it. Especially the syntax for the other addToBatch commands.
Chris
