Does anyone have experience with it? What are your thoughts, compared to other forms of RPC?
- https://docs.python.org/2/library/simplexmlrpcserver.html I found it hidden away amongst the default Python libraries and am quite astounded by it’s simplicity. # From within Mayafrom SimpleXMLRPCServer import SimpleXMLRPCServerimport threading from maya import cmds server = SimpleXMLRPCServer(("127.0.0.1", 8000)) server.register_function(cmds.createNode) t = threading.Thread(target=server.serve_forever) t.daemon = True t.start() And then, from a terminal. >>> import xmlrpclib>>> proxy = >>> xmlrpclib.ServerProxy("http://127.0.0.1:8000/")>>> >>> proxy.createNode("mesh")'polySurfaceShape1' Resources: - pymotw1 <http://pymotw.com/2/SimpleXMLRPCServer/index.html#module-SimpleXMLRPCServer> - pymotw2 <http://pymotw.com/2/xmlrpclib/> -- *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/CAFRtmOBOaQfQ0k2_dLavXb0zDOOR6%2Bt%2Bb%3DpjWz7mMdrBWKDvTw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
