Skip to main content
JuniorRamos29
Known Participant
August 11, 2021
Question

ScriptUI "palette" window doesn't close in After Effects 2021 (on Windows)

  • August 11, 2021
  • 1 reply
  • 863 views

Hi,
I developed an Extension using CEP panels and it's working nicely (on Mac). On Windows, it's working also, but I have a problem with a window palette that won't close by any means.
The thing is that my extension is shown by the CEP panels, and while executing its task I'm showing a progress bar using a window palette.

The expected behavior:


Step 1 - Run the extension task, show the progress bar window (palette).
Step 2 - When the task is finished the progress bar closes on its own.


Steps 1 and 2 are working on Mac, but on Windows the window palette simply doesn't close by any means.


Does anyone know how can I fix this?






This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
August 11, 2021

I would systematically check what exactly is not working:

1) Does the task your script performs fails ?
2)  Or does the code which detects if the task is finished fail?
3) Or does the code to close the panel fail?
4) Or does the code to close the panel execute properly but does not do anything

 

How do you close the panel - I assume by executing

csInterface.closeExtension();

?

The easiest way to to check 1-3 is to put some
console.log("I am executing the closeExtension() function now")
right before your csInterface.closeExtension();

and then check if this message shows up in the console of the debugger or not.

 

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
JuniorRamos29
Known Participant
August 11, 2021

Hi Mathias.

 

Thanks for the reply.

 

Well, on Mac I don't have any trouble and everything is fine.

And on Windows 10 (I've not tested in other versions) the everything also is working:
The code and all functionalities are running properly.

And I get the project configured as I expect.

But the window (palette) is not closing by any means:

 - Right-click menu and Close option;

 - Alt+F4;

 - Close button on the top, etc;

As you can notice in the image, it remains open even after I close the project.

And about following the steps you suggested, the thing is my development environment is on a Mac.

And the Windows machine for the test it's not with me. I need to move to another site to make the tests.I already saw some old posts about this situation, but related to Photoshop or InDesign.

But for me is on After Effects. So I'd like to know if somebody has any clue on what can be the thing with using the window (palette) on Windows.


Mathias Moehl
Community Expert
Community Expert
August 11, 2021

Oh, I thought you just cannot close it via code. If you cannot close it at all, this definitely sounds like a bug and you should definitely report it to the Ae team.
https://www.adobe.com/products/wishform.html

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects