title: Connecting to Maya through javascript
body: <p>I am working on an app for sending commands to Maya, much like the iOS app <a href="http://the3dninja.com/blog/?p=1223" rel="nofollow">CameraMan</a>. However, I am looking for a way to make this web-based, rather than building a native app. I believe this can be done, but I'm stuck on how to make that initial connection. Maya creates a commandport that is accessible via a specific ip address:port number. I can send commands from Eclipse, for example, or even short python scripts. I've seen this in action in a native app, but how to do this through Javascript?</p>
  
  <p>Maya does offer a browser plugin that does this, but of course it's a plugin and won't work on mobile browsers nor can I customize it for the exact application I'm trying to make.</p>
  
  <p>By way of background, I have basic knowledge of Javascript, Python, and MEL scripting. </p>
  
  <p>Update: I should specify that I'm not looking to control Maya over the internet. Rather, I'm looking for a way to make a connection over a local network, where I know the ip address, just like the CameraMan app I referenced above (just not as a native app).</p>
  
  <p>Update 2: Unfortunately, this project is a bit of a no-go at this point. What I didn't realize was that in order to enable websockets on the Maya "server," I'd need to implement some third party libraries. Fine for individual use, but not if I'm trying to release a tool for other people.</p>