I want to send python command in __main__ namespace and recieve pickled result.
So i open command port with:
commandPort -stp "python" -po -n ":6666";
maya.cmds already imported into main namespace as mc.
So, when i send "import __main__; exec('mc.sphere()', __main__.__dict__,
__main__.__dict__)" it creates sphere but every time return None.
What i need to do to get [u'nurbsSphere1', u'makeNurbSphere1'] list.
It works well via mel commandPort and send 'python "..."', but i need 100%
python pickled type and unpickle it in other python.
--
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.