Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CC 2015 onDraw Throws Error during Rendering

Participant ,
Jul 27, 2015 Jul 27, 2015

I have a ScriptUI Panel with some custom buttons. I use onDraw event to draw the buttons. Works fine except when rendering. I receive an error "Can not run a script while a modal dialog is waiting for response"

Happening only on CC 2015. Try-catch will not fix as that is still scripting. Any workarounds?

TOPICS
Scripting
705
Translate
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
Explorer ,
Oct 24, 2016 Oct 24, 2016

I have the exact same issue, and I don't believe there's a way around it, which renders the onDraw callback completely useless.

If we can't use it without errors, why even include it as a possibility?

Translate
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
Community Beginner ,
Aug 23, 2023 Aug 23, 2023
LATEST

I have the same problem. I lose the entire rendered interface. When restarted, this error occurs. That is, as I understand it, this is a conflict of modal windows.

Translate
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