Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Quit Cinema4D

    SDK Help
    0
    5
    545
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

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

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

      ---------
      Hello,

      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?

      regards

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        Howdy,

        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.

        Adios,
        Cactus Dan

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

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

          Hello,

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

          regards
          Marky

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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[URL-REMOVED] type might be what
            you want.

            Best,
            -Niklas


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

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

              Howdy,

              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. 😉

              Adios,
              Cactus Dan

              1 Reply Last reply Reply Quote 0
              • First post
                Last post