Quit Cinema4D

  • On 29/08/2014 at 05:15, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   13.061 
    Platform:   Windows  ;   
    Language(s) :     C++  ;


    Exist an message or hook function, which will be called before C4D closed ?
    My problem if the user press the "Quit" menu entry or press in the upper right corner on the red field to quit C4D, I have to clean up some settings.

    Or exist an possibility to prohibit the "quit" of the tool?


  • On 29/08/2014 at 06:21, xxxxxxxx wrote:


    Cleanup is usually done in the various Free() functions that are in the data classes. Plus, there is also the main PluginEnd() function that you might use.

    Cactus Dan

  • On 31/08/2014 at 23:47, xxxxxxxx wrote:


    thanks for this hints. But I need a function call, before an C4D project will be closed.


  • On 01/09/2014 at 03:15, xxxxxxxx wrote:

    How about MSG_DOCUMENTINFO? I think  that this message is only sent to SceneHooks,
    but I am not absolutely sure. The MSG_DOCUMENTINFO_TYPE_REMOVE type might be what
    you want.


  • On 01/09/2014 at 05:27, xxxxxxxx wrote:


    The documentation says it is sent as a broadcast message. I'm assuming that means it is sent to everything? I've used it in a ToolData::Message() function, so it doesn't seem to be confined to a SceneHook. 😉

    Cactus Dan

Log in to reply