How to output strings into message boxes through Jython

theslyprofessor's icon

theslyprofessor

Feb 5, 2019, 8:37 AM

Hello,
I am new to programming externals in Java, as well as Jython. I am trying to output a string into a message box using Jython. Here is my function. It does not output the string. It will output a number though. Any idea on what I need to do to get it to work?

def add():
a = "dog"
maxObject.outlet(0, a);

I tried the advice on this forum, but to no avail:
https://cycling74.com/forums/how-to-output-strings-into-message-boxes-through-mxj-objects
outlet(0, "set", "mystring");

Thanks,
Nakul