Forums › Adobe After Effects Expressions › Detecting modal dialogue box
Detecting modal dialogue box
Reuben Lara
November 23, 2019 at 2:20 pmHow can i detect if a modal dialogue box is open? This error: “Cannot run a script while modal dialogue is waiting for a response” appears under the following condition:
1. Open my ScriptUI panel
2. Open a modal dialogue like “Import”
3. While the dialogue box is open, hover over my ScriptUI panel if it’s showing in the background.
4. The error triggers.My panel uses a mouseover event so it makes sense why the error is triggering. But how can I get my panel to ignore mouseover events when a dialogue is open?
Thanks!
Tomas Bumbulevičius
November 29, 2019 at 9:00 amHey Reuben, not sure whether it will be beneficial – but what about beginSuppressDialogs() and app.endSuppressDialogs()? It allows ignoring them completely, but might not work in this case.
Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer – Dynamic Text Boxes Template with a Live PreviewReuben Lara
December 1, 2019 at 7:16 pmThanks will look into that!
Log in to reply.