Re: commandPort stack trace/errors

33 views
Skip to first unread message

James Morrison

unread,
Jan 20, 2014, 5:13:58 AM1/20/14
to python_in...@googlegroups.com
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)


thanks,

Justin Israel

unread,
Jan 20, 2014, 5:34:28 AM1/20/14
to python_in...@googlegroups.com
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:


I don't handle reading back from the connection, but I do have it handling exceptions in the script editor



--
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 python_inside_m...@googlegroups.com.
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.

Reply all
Reply to author
Forward
0 new messages