Skip to main content
Andrew56s
Participant
Nov 15, 2020 4:40 PM UTC
Question

Different values for ES and AE (AME BrigeTalk)

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

bbb_999
Community Manager
Community Manager
Apr 16, 2021 7:48 PM UTC

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.

Translate
Andrew56s
Andrew56sAuthor
Participant
Jul 22, 2021 5:20 PM UTC

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.
Translate
Bruce Bullis
Legend
Jul 23, 2021 11:27 AM UTC

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...

 

 

Translate
Bruce Bullis
Legend
Nov 16, 2020 4:17 PM UTC

Odd. We'll have a look.

Translate
Andrew56s
Andrew56sAuthor
Participant
Nov 15, 2020 4:49 PM UTC