FreeTool expects None not Bool



  • On 29/06/2016 at 15:45, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   17 
    Platform:      
    Language(s) :

    ---------
    The c4d.plugins.ToolData.FreeTool() method documentation says it should return a Bool, however when I return a Bool I get this error:

    "TypeError: FreeTool expected None, not bool"

      
    class SphereTool(plugins.ToolData) :   
        """Inherit from ToolData to create your own tool"""   
      
      
        def InitTool(self, doc, data, bt) :   
            """Called each time the tool is selected.   
            :return: True if there was no error, otherwise False.   
            """   
            return True   
      
        def FreeTool(self, doc, data) :   
            """Called each time the user chooses another tool.   
            :return: True if there was no error, otherwise False.   
            """   
            return True   
    


  • On 30/06/2016 at 02:37, xxxxxxxx wrote:

    Hi Donovan,

    this is a known bug in the documentation, it is already fixed. The fix will be published with the next update.
    Nevertheless thanks for taking the time to report it.


Log in to reply