Search code examples
pythonmayamel

Programming MEL/Python Script textField to receive all script editor output


I'm trying to figure out a way to get the script editors output to write to a textField control in Maya for a custom-made window. Essentially, I'm trying to rewrite the commandline function without having the separator or input options.

I'm having a bit of difficulty figuring out what to do, since there seems to be not clear information in Maya's documentation - can I get a few pointers in the right direction?


Solution

  • the cmdScrollFieldReporter and cmdScrollFieldExecuter controls do most of the work for creating the script listener -- see if those do what you need before trying to invent something new.