C4D close message

On 07/07/2015 at 14:15, xxxxxxxx wrote:

I'm using 'AskClose(self)' in my dialog to clean things up if a user closes the dialog, but this doesn't seem to trigger if the user closes C4D.

How do implement a 'clean-up' function that can trigger before C4D closes?



On 08/07/2015 at 02:09, xxxxxxxx wrote:


to catch the "destruction" of a GeDialog you could implement GeDialog.DestroyWindow(). If you have to clean up data when Cinema closes you can catch the plugin messages C4DPL_ENDPROGRAM and C4DPL_ENDACTIVITY in PluginMessage().

Best wishes,

On 17/07/2015 at 09:54, xxxxxxxx wrote:

Hello Chris,

was your question answered?

Best wishes,