I have a command plugin with a dialog.
Which message do I receive when I close this dialog?
This is how I checked for a close dialog.
def Message(self, msg, result):
id = msg.GetId()
#print "id: ", id
if (id == c4d.C4DPL_END):
print "Plugin closed."
return gui.GeDialog.Message(self, msg, result)
You can simply implement AskClose(): https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.gui/GeDialog/index.html?highlight=askclose#GeDialog.AskClose
Or even DestroyWindow() etc.
as @mp5gosu has pointed out you can implement AskClose() and DestroyWindow() to be informed on these events.
You find an example for AskClose() in Py-TextureBaker.pyp.
You also find general information on GeDialog in the C++ documentation:
@s_bach said in Which message do I receive when a command plugin dialog is closed?:
By the way, compliments on the latest R20 C++ manual. It is great!