How to catch SubDialog errors?
-
Hello guys!
My plugin have to load some parts of its interface using methods AddSubDialog, AttachSubDialog. But if there is some errors or typos on gui subdialog class methods like InitValues():TypeError: InitValues() takes no arguments (1 given)
is not "raiseble" with try/raise. Error just appears in Script Console.
How to catch all gui drawing errors? -
Hi @mikeudin, thanks for reaching out us.
With regard to the chance to "catch all the GUI drawing errors", it's not possible being the involved methods called during the runtime by Cinema and the try/raise solution simply can't work.
With regard to the cause of this error, I guess you're getting it cause you forgot to add the
self
parameter in your GeDialog::InitValues() implementation. Please check.def InitValues(self): print "called InitValues for my dialog" return True;
Cheers, R
-
Thanks! So will find some workaround.