-
AFTER EFFECTS terminate app.scheduleTask() on Panel close (NOT Window!).
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.
Sorry, there were no replies found.