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

    Mix-up members after reloading python plugins

    Scheduled Pinned Locked Moved Bugs
    3 Posts 0 Posters 685 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

      On 09/05/2015 at 04:55, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   16.050 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :

      ---------
      Hi,

      there is a mix up of function members in InitTool after reloading Python plugins.
      If one opens c4d everything works fine, but after reloading Python plugins,
      for the data member one gets the current document and vice versa.
      Start c4d, write these lines into the LiquidTool class inside the liquid painter example and reload the plugin.

        
        def InitTool(self, doc, data, bt) :  
            print data, "should be a BaseContainer"  
            print doc, "should be the current document"  
            return True  
      

      Is this a bug with the reload python plugins command?

      Best wishes
      Martin

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

        On 11/05/2015 at 08:47, xxxxxxxx wrote:

        Hi Martin,

        I confirm this is a bug reloading ToolData plugins and InitTool() overloaded method parameters. Sorry for the inconvenience caused. This issue will be fixed.

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

          On 11/05/2015 at 12:49, xxxxxxxx wrote:

          Hello Yannick,

          thanks for the confirmation.

          Best wishes
          Martin

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