Unable to focus AME Consistently

Adobe Community Professional ,
Apr 05, 2021 Apr 05, 2021

Copy link to clipboard

Copied

I'm hitting a wall where Premiere is constantly stealing focus from AME, so that it's virtually impossible to focus AME short of calling the executable directly, and even that doesn't always work. 

 

 

I've tried:

BridgeTalk.bringToFront('ame')

Which never seems to work for any app.

 

In ExtendScipt, I've tried The most simple way:
app.encoder.launchEncoder();

And with Vulcan, I've tried:

const vulcan = new Vulcan();
vulcan.launchApp('ame-14.0', true, '');

Both of which only work if I set a timeout and focus away from my CEP panel, so it's impractical for a button usage.

 

The Vulcan method works fine for other Adobe apps but not AME. There seems to be a strange focus battle with Premiere and AME when a CEP panel is in focus. 

 

My current workaround, is finding the Media Encoder execuatble and calling it directly with execSync() so that it's brought to the front, but on Windows that only works if AME has been launched after a CEP panel, and on Mac it only works if AME has been launched before the CEP panel.

 

Has anyone else run into this? Thanks!

TOPICS
SDK

Views

104

Likes

translate

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 05, 2021 Apr 05, 2021

Copy link to clipboard

Copied

I haven't run into it or heard about it, but that doesn't mean it isn't occurring...

 

What are you trying to do in AME, once you've forced it to the front? 

 

Perhaps just firing a BridgeTalk message to AME (like PProPanel does, here) might work?

Likes

translate

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 Community Professional ,
Apr 06, 2021 Apr 06, 2021

Copy link to clipboard

Copied

Thanks Bruce, I tried that but running into the same issue unfortuantely.

 

As you can see from this GIF, some of these functions will highlight the app, but will not bring it into focus, it stays behind Premiere. However, once AME has been focused after the panel has been launced for the first time, then vulcan.launchApp() and execFileSync() will work.

(testing on CC 2020, but run into the same issues on 2021)

 

ame-focus-issue.gif

 

I've uploaded a sample unsigned cep panel with the various approaches I've tried if you can test and see if you're running into the same issues on your end:
https://drive.google.com/file/d/1bMEIZ_A_iDESyHQHmehuE95omoPot5Zt/view?usp=sharing

 

Thanks!

Likes

translate

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 ,
13 hours ago 13 hours ago

Copy link to clipboard

Copied

The only panel button which fails for me (after I updated all the AME 14.0 references to 15.0) is the last one, execFileSync(). 

Likes

translate

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