Change Preset after sendToAME from AfterEffects (Extend Script)

Participant ,
Dec 01, 2020 Dec 01, 2020

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?

TOPICS
Export or render, How to

Views

18

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation