Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Python: Cinema exit event

    Cinema 4D SDK
    python
    3
    4
    582
    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.
    • P
      paulgolter
      last edited by

      Hey all,

      Is there any way to catch a cinema application exit event?

      I need to do execute code just before cinema shuts down.

      Note: I have set up a cinema python plugin. So if cinema shuts down the plugin before exit and I am able to listen to a plugin unregister event, that would also work.

      All the best

      1 Reply Last reply Reply Quote 0
      • S
        spedler
        last edited by

        See the function PluginMessage() and listen for messages such as C4DPL_END or C4DPL_ENDACTIVITY.

        Steve

        P 1 Reply Last reply Reply Quote 1
        • P
          paulgolter @spedler
          last edited by

          @spedler thanks for your quick reply!

          As you suggested I tried catching the C4DPL_ENDACTIVITY and that works. Thanks!

          But for some reason I can't seem to catch the C4DPL_END that you mentioned.

          Check out this thread where I posted that problem. Would love to hear if you got that to work somehow!

          1 Reply Last reply Reply Quote 0
          • ferdinandF
            ferdinand
            last edited by ferdinand

            I think this can be closed 🙂

            MAXON SDK Specialist
            developers.maxon.net

            1 Reply Last reply Reply Quote 1
            • ferdinandF ferdinand locked this topic on
            • First post
              Last post