Forums > MaxMSP

jython: make maxObject.outlet function work within a class

January 11, 2010 | 2:45 am

hi,
when using jython (loadbang.net), you load via an mxj object in the max patcher window the python script.
In this script you can type maxObject.outlet(0,"something") to outlet "something" in the mxj first outlet.

But if in this script you call a class within which you use the maxObject.outlet, it won’t work.

I tried to pass through the maxmsp java class to use the function directly but I can’t figured it out how neither.

I’ve been struggling with this issue for months now.
To deal with my need, for the moment I defined function in my main script (the one that is loaded in the mxj object) and outlet the result returned by functions in my class i call.

But now I really need to outlet things directly from my functions’ class without having to do my trick.

has anyone tried to do this and succeeded?


Viewing 1 post (of 1 total)