Right now, I'm sending several line-broken Python strings embedded in the Objective-C code in order to execute the series of steps I'm doing. What I'd like to do is define functions in a Python script on the Maya side and then only send function calls rather than multi-line commands. However, I can't get that to work. I've got the functions defined properly and can execute them from the Maya command line. But the code coming through the commandPort must be operating on a different thread or namespace.
When I execute "print __name__" in the script editor, I get:
__main__
When I execute "print __name__" from my app, I get:
maya.app.general.CommandPort
I'm kind of stumped on this.
--
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 post to this group, send email to python_in...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.