Copy link to clipboard
Copied
I'm currently sending AE Comps via this function to AME:
function getAEComps(myType,myName){
for (i = 1; i <= app.project.numItems; i++){
if ((app.project.item(i) instanceof myType) && (app.project.item(i).name ==myName)){
return app.project.item(i);
}
}
}
function sendToRender(what){
var currentRender = app.project.renderQueue.items.add(what);
if(currentRender.outputModule(1).file === null){ // If no Output path is set, set a default one to ensure send to AME is working
var om1 = currentRender.outputModule(1);
var new_path = "~";
var new_dir = new Folder( new_path );
new_path = new_dir.fsName;
var new_data = {
"Output File Info":
{
"Base Path":new_path,
"Subfolder Path":"RENDER",
"File Name":"default"
}
};
om1.setSettings( new_data );
}
}
var dynamicCreationFolder = getAEComps(FolderItem,"DYNAMIC");
sendToRender(dynamicCreationFolder.item(1));
app.project.renderQueue.queueInAME(false);
That works like a charm. In the next step, I'd like to tell AME to apply a specific preset (lets call it "my MXF OP1a" for now) to the whole export batch. I found some code examples for AME, but I think its a little problematic to tell AME anything, as my script will start and run in AE. Do I need Bridge Talk for this? Or has anyone another idea how I can tell AME to apply the preset?
Have something to add?