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

    R13 Python Script Reload

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 392 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 12/09/2011 at 03:08, xxxxxxxx wrote:

      Hi,

      I think there is a little poor effect in R13 new function of python script reload. Existings sockets and threats will not reseted. Or is there an event available on which a plugin can do it itself if the plugin will be unload?

      Meinolf

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 12/09/2011 at 06:02, xxxxxxxx wrote:

        Hi, the documentation will be available soon. The reload stuff must be done by the plugin, this cannot be solved by the reload command. In your main file add the following lines and shutdown all the services:

          
        def PluginMessage(id, data) :  
          if id==c4d.C4DPL_RELOADPYTHONPLUGINS:  
              ShutdownAllYourStuff() #shutdown all services, sockets, listener, ...  
              return True  
          return False  
        

        If you have have a socket server you can also handle C4DPL_ENDACTIVITY to shutdown the services properly when C4D is closed.

        Cheers, Sebastian

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 13/09/2011 at 10:04, xxxxxxxx wrote:

          Thx! Tongue
          Meinolf

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