Hi all,

Is there any interest in a RESTful interface to Maya?

The idea would be to facilitate external access of Maya from things like
Web Applications or externally running GUIs.

I mocked up a minimal example of how it could look here:

   - https://github.com/abstractfactory/RestMEL
   - https://github.com/abstractfactory/RestMEL/tree/master/restmel/demo

# List all nodesimport requestsprint
requests.get("http://127.0.0.1:6000/node";).text

The Demo includes an externally running QML application.

Alternatives

What would be the benefits of something like this over the native
commandPort or ZeroMQ and c/o?

   - commandPort uses the same port for multiple instances of Maya, causing
   only the first instance to get exposed. Can this be remedied? What else is
   there about the commandPort that could be better?
   - ZeroMQ relies on a binary library and isn’t as supported as plain
   HTML. Meaning a web application could gain access to Maya via native
   commands, whereas talking to a ZMQ server requires third-party binaries.

Thoughts?

Best,
Marcus
​
-- 
*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/CAFRtmODWwbwoQyVE1o_f0LvcC2DF%3Dfv1bCVA8vznHet8wqBy%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to