Have you looked at the code from my MayaSublime plugin for SublimeText? If I remember, it was one of these similar questions about talking to maya over a commandPort that prompted me to write the plugin as an example:
https://github.com/justinfx/MayaSublime/blob/master/MayaSublime.py I don't handle reading back from the connection, but I do have it handling exceptions in the script editor On Mon, Jan 20, 2014 at 11:13 PM, James Morrison < [email protected]> wrote: > hi, just wondering if this was ever figured out. i got sublime sending > commands..but when i try to do stuff like getAttr there's no feedback (# > Result: ) that comes back...i'm looking around for an alternative to the > charcoal editor...already have sublime so not looking to spend more $ on a > new editor..:( > cheers. > > > On Thursday, September 20, 2012 6:54:47 PM UTC+9, Danny Wynne wrote: >> >> Im sending commands to maya from sublime text 2. How can I get the >> cmds.commandPort to print the stack trace and errors from those commands. >> >> cmds.commandPort(name=":7002", sourceType="python", eo=True, nr=True) >> >> i figured *echoOutput*(*eo*) and *noreturn*(*nr*) command arguments would >> do the trick, but it doesn't. >> >> thanks, >> > -- > 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/9adcb65f-1653-4acb-83ed-b904189c8e98%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/CAPGFgA0ChyqGUD7--x7r_30g1MA3O3v_0gPb1hfwueR%2Bwi08jQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
