Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions AFTER EFFECTS terminate app.scheduleTask() on Panel close (NOT Window!).

  • AFTER EFFECTS terminate app.scheduleTask() on Panel close (NOT Window!).

    Posted by Anna Petkovskaya on April 16, 2019 at 3:09 pm

    How to have action upon closing the Panel – is there some equivalent to window.onClose()?

    EDIT:
    OK, I kind of solved it indirectly: I am testing during every scheduleTask() cycle inside the called function with try/catch if there is still instance of the object (in my case ListBox) – if it throws error I know the dialog window was closed/is not present anymore (I just changed my mind and replaced canceling the task with “do nothing” instead as I need to run when there is the ListBox once again) BUT I still have one another issue which is Modal Dialog error coming into my way that is not catch by the try/catch: dose anyone know hot to get rid of the “Can not run a script while a modal dialog is waiting for response”?

    But I see no modal dialogs – there is nothing awaiting of anything, that message even does not show up until I manually close my panel and reopen it!

    And even stranger is the fact it only happens with a huge project(s) having like 850 active layers which take about 30 seconds to fully open, but with small projects there is no problem like this at all.

    Anna Petkovskaya replied 7 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy