Highlighted

Not able to encode After effects composition using Media encoder Bridgetalk

Participant ,
May 07, 2020

Copy link to clipboard

Copied

Hi,

We are trying to render After effects composition with some specific presets using Media Encoder by using BridgeTalk to pass the composition to AME. When calling the addDLToBatch function we are getting Bad digit in number error.

We think its due to the dynamicLinkGUID we are passing to AME.

function CreateBridgeTalkMessage() { 
var bt = new BridgeTalk(); 
bt.target = "ame"; 
var GUID=app.project.items[2].dynamicLinkGUID;
var myScript = "addToQueue = " + addToQueue.toSource() + "\r"; 
myScript += "addToQueue("+GUID+");"; 
bt.body = myScript; 

bt.onResult = function(resObj) {

}
bt.onError = function(msg) { 
alert("error");
}
bt.send(100); 
}

function addToQueue(guid) { 
var fe=app.getFrontend();
fe.addDLToBatch("test.aep","AVI","custom.epr",guid,"new.avi");
}

Can you please give your suggestions on this problem.

TOPICS
How to, Import and export, SDK

Views

272

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

Not able to encode After effects composition using Media encoder Bridgetalk

Participant ,
May 07, 2020

Copy link to clipboard

Copied

Hi,

We are trying to render After effects composition with some specific presets using Media Encoder by using BridgeTalk to pass the composition to AME. When calling the addDLToBatch function we are getting Bad digit in number error.

We think its due to the dynamicLinkGUID we are passing to AME.

function CreateBridgeTalkMessage() { 
var bt = new BridgeTalk(); 
bt.target = "ame"; 
var GUID=app.project.items[2].dynamicLinkGUID;
var myScript = "addToQueue = " + addToQueue.toSource() + "\r"; 
myScript += "addToQueue("+GUID+");"; 
bt.body = myScript; 

bt.onResult = function(resObj) {

}
bt.onError = function(msg) { 
alert("error");
}
bt.send(100); 
}

function addToQueue(guid) { 
var fe=app.getFrontend();
fe.addDLToBatch("test.aep","AVI","custom.epr",guid,"new.avi");
}

Can you please give your suggestions on this problem.

TOPICS
How to, Import and export, SDK

Views

273

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
May 07, 2020 0

Have something to add?

Join the conversation