We developer a python toolbox with one python script. The script doesnot need any parameters set, it just needs to run multiple times.
Currently, we've managed that the script is executed once and it runs correctly.
However, as soon as we close the opened window, the tool cannot be started again by clicking on it. If we open the tool and click on the script, we get the error messagen "AttributeError: 'Tool' object has no attribute 'getParameterInfo'.
However, the tool can again be started by refreshing the tool - then it works again perfectly.
Since the tool doesn't require any parameters, it doesn't make sense to set them. In order to get it to work, I tried it nonetheless, but with no success. Unfortunately, I cannot post the script, but I figure the question to be answered is:
How to define properly the getParameterInfo for a script/tool which doesn't require any user-input, but just needs to run (multiple times)?
Solved! Go to Solution.
Do you have a getParameterInfo method defined?
def getParameterInfo(self):
"""Define parameter definitions"""
params = None
return params
Do you have a getParameterInfo method defined?
def getParameterInfo(self):
"""Define parameter definitions"""
params = None
return params