Importing ScriptDialog module [10.1.10.6]

I’m trying to do a basic message box in a job script using ShowMessageBox(). I was trying to reuse some old code:

from DeadlineUI.Controls.Scripting.DeadlineScriptDialog import DeadlineScriptDialog

But that’s now throwing errors, but it seems like the libraries changed. So I tried importing the new ScriptDialog module:

from ScriptDialog.ScriptDialog import *

But I again am getting an error. So what am I doing wrong here?

Hi!

Could you include the error you’re getting?

Hey Justin,

So I’m unsure what was going on before, but when I used the former import statement again it worked:

from DeadlineUI.Controls.Scripting.DeadlineScriptDialog import DeadlineScriptDialog

I’m using VS Code and I used the set up tool to integrate code completion for the Deadline libraries. So maybe that triggered something.

I am curious though as to why this line won’t allow me to access the ScriptDialog classes the same way I access the Deadline classes though:

from ScriptDialog.ScriptDialog import *

Privacy | Site terms | Cookie preferences