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

    Run code on thread termination

    SDK Help
    0
    3
    554
    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 12/12/2017 at 02:45, xxxxxxxx wrote:

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

      ---------
      Hello.

      I need to run some code as soon as a C4DThread has finished running.
      Is there a way to do that ? (a callback maybe)

      Thank you for your time.

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

        On 13/12/2017 at 02:52, xxxxxxxx wrote:

        Hello,

        do you want to inform other parts of your plugin that your thread has finished? The typical way to do this is to send a custom core message from that thread. This custom core message can then be caught in a dialog or MessageData plugin. You find an example in the C4DThread Manual. See also Core Messages Manual.

        best wishes,
        Sebastian

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

          On 14/12/2017 at 03:34, xxxxxxxx wrote:

          Thank you very much Sebastian !

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