Off the top of my head, sounds like it should be fairly straightforward to intercept the sys.stdout of Maya, and pass on whatever information goes into it on to Sublime.
However, the reason Maya can get commands from the outside is because it has a server/listener open - the commandPort. Sublime is then passing commands through it, similar to passing messages across a network. For messages to go the other way around, you'll have to create a server/listener in Sublime and then have Maya transmit messages to it instead. Probably not the most straightforward thing to do, but I can see the advantage of doing so. I might be able to walk you though it, but first, is this what you are looking for? On 15 June 2014 06:58, 提颖浩 <[email protected]> wrote: > Hi > Whenever the Sublime Text executing code, it can display information > getting the from Maya > For example: import maya.cmds as mc > selectList = mc.ls (sl = True) > print selectList > Sublime Text can display the contents of selectList > thank you > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/27a29971-282b-460b-b474-a5abda2b221f%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/27a29971-282b-460b-b474-a5abda2b221f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD449W39zd-OdHrz7-GE-Ydm3Lne10OXYV5PVwiC4PGBg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
