Hi Thomas,
using your py-external I get error messages (py/pyext: Could not convert
argument <type 'list'>) for outputing (automatically generated) tuples
from a python script. My experiments converting with str() or list()
didn't work either ..
Could you please have a look at the attached files ....
My preferred output would be to have the 2 lists inside the tuple in a
series (like pd would do with messages seperated by a comma), is this
hard to achieve?
Thank you and all the best
Michael
#N canvas 252 216 929 302 12;
#X obj 23 112 print output;
#X floatatom 258 30 5 0 0 0 - - -;
#X msg 49 17 reload;
#X obj 23 65 py testOutput testPythonOutputWorking;
#X obj 358 115 print output;
#X floatatom 593 33 5 0 0 0 - - -;
#X msg 384 20 reload;
#X obj 358 68 py testOutput testPythonOutputNotWorking;
#X connect 1 0 3 1;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 5 0 7 1;
#X connect 6 0 7 0;
#X connect 7 0 4 0;
def testPythonOutputWorking(i):
output = [128, i, 64]
return output
def testPythonOutputNotWorking(i):
output = [128, i, 64], [144, i, 64]
return output