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