Skip to main content
Andrew56s
Participant
November 15, 2020
Question

Different values for ES and AE (AME BrigeTalk)

  • November 15, 2020
  • 3 replies
  • 537 views

Hi! 

This is the code for checking if the render is done. I run it throught ESTK (After Effects) and wait when the render stops. But the problem is when I run it through ESTK (chosen ExtendScript Toolkit CC) it works fine: when the script starts, it writes true values in the console. BUT if I run it throught AE (chosen Adobe After Effects 2020) it just catch only the first "callback", only the first value of "isBatchRunning()". If I pause or stop the render, nothing happens, only the first value of "result" is displayed in the console. What am I doing wrong? Thanks!

 

var isRendering = true;
var myResult;
var bt = new BridgeTalk();
bt.target = "ame-14.0";
bt.body = "app.getEncoderHost().isBatchRunning()";
function infoFromAME() {
    bt.onResult = function(msg){
        resultFunction(msg.body)
        }
    bt.send();
}
function resultFunction (result){
        myResult = result;
    }
while (isRendering) {
    infoFromAME()
    if (myResult == "true"){
        $.writeln('render is in progress');
        }
    else {
        $.writeln('render is done');
        }
}

 

GIF file is attached.
This topic has been closed for replies.

3 replies

bbb_999
Adobe Employee
Adobe Employee
April 16, 2021

When the connection is ESTK <--> script host, the messages seem to come back just fine. 
When the connection is ESTK --> interim host --> BridgeTalk target, I don't think messages get returned appropriately.

Andrew56s
Andrew56sAuthor
Participant
July 22, 2021

Thank you! 

Can't imagine how to do the next task with ESTK:

  • open AE project (done), customize it (done), send to the AME (done), get the information when it's rendered(?????), close AE project (done) and open another one... and so on.
Bruce Bullis
Community Manager
Community Manager
July 23, 2021

Hrrmmnnn...

Not sure how you'd do that, without scripting AME directly, before and after adding your render job (so you know which ones were new/added), and getting render status from AME directly...

 

 

Bruce Bullis
Community Manager
Community Manager
November 16, 2020

Odd. We'll have a look.

Andrew56s
Andrew56sAuthor
Participant
November 15, 2020