I'm working with a real pepper and Choregraphe. I have a dialog that grab the input of a string (numbers 1 to 6) and inserts them into a specific output string. Then i created a custom box in python to convert that string into number and do operations (put a counter or add the variables it receives in input). To test the operation of "taking the variable" I created this if, but it does not work. Can you tell me the correct syntax to use to take the input parameter?
Several problems with your code:
value = self.getParameter(word)
line. self.getParameter
is for getting box parameters (edited with the wrench at the bottom left corner of a box), which you don't seem to have on that box.selfonStopped1
.(it might be worth spending some time doing Python and Choregraphe tutorials, like these)