• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Different values for ES and AE (AME BrigeTalk)

Community Beginner ,
Nov 15, 2020 Nov 15, 2020

Copy link to clipboard

Copied

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.
TOPICS
Error or problem

Views

277

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
Community Beginner ,
Nov 15, 2020 Nov 15, 2020

Copy link to clipboard

Copied

Votes

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
Adobe Employee ,
Nov 16, 2020 Nov 16, 2020

Copy link to clipboard

Copied

Odd. We'll have a look.

Votes

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
Adobe Employee ,
Apr 16, 2021 Apr 16, 2021

Copy link to clipboard

Copied

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.

Votes

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
Community Beginner ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

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.

Votes

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
Adobe Employee ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

LATEST

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

 

 

Votes

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