I'm currently working on a plug-in which should permit SciTE to communicate with Maya, in a bidirectional manner, so that Maya can also issue commands like "open file" or "save session".
AFAIK a commandPort can only receive data, and some tests I've been doing with a custom TCP/IP socket inside the plug-in showed that it's possible to cause a stack overflow if the content sent over that connection is too large. I don't want to spent much time on this, so I decided to let SciTE dump the content into a temporary file, pass the filename to the plug-in, and then have the plug-in read the contents from that temporary file and put it into an MGlobal::executeCommand() call.
Now, for those who of you who know SciTE, I'd like to know how I can get the response of the executed command into SciTE's output window. I know how to transfer it to SciTE and how to display it there, I just don't know if it's possible to collect that information in the first place.
If SciTE for example issues a command like help -doc "scintillaCallback";, then Maya will display the following inside the script editors history window:
// Error: line 1: There is no command named "scintillaCallback". //
// Error: line 1: Type "help" for general information about the help command. //
this is the stuff I want to send back to SciTE, so I don't mean the result of a command in terms of int intarray double, etc.
Is it true that this data can only be collected through a commandPort connection?
Thanks in advance,
Daniel