Hello again,
Thanks to Maxime's reply, I am one step further with my dialog in a script.
This works now:
def CreateLayout(self):
self.SetTitle("The dialog of my dreams")
self.AddDlgGroup(c4d.DLG_OK|c4d.DLG_CANCEL)
return True
But if I try to add any gadgets myself, like this:
def CreateLayout(self):
self.SetTitle("The dialog of my dreams")
self.AddButton(id=1001, flags=c4d.BFH_SCALE|c4d.BFV_SCALE, 100, 25, "A button!")
self.AddDlgGroup(c4d.DLG_OK|c4d.DLG_CANCEL)
return True
I get an error in the Python console, pointing to the Addbutton()
line:
SystemError: error return without exception set
Why? And how do I avoid it?
Thanks again in advance!
Cheers,
Frank
PS: Yes, I do know that dialogs in scripts are not recommended ;-)