问题
What I have been researching with no luck, is how to get Autodesk Maya to communicate though the web on the localhost ip (preferably TCP). My goal is to control maya with a quick java application I wrote to manipulate curve selecting and such. If there is a way to do it in mel scripting, that would be awesome.
回答1:
Maya includes the commandPort command which will listen for incoming connections on a socket and run either mel or python scripts on the incoming data
examples: http://fredrik.averpil.com/post/55507118045
Opening a commandPort in standalone maya for unit testing
use external python script to open maya and run another script inside maya
来源:https://stackoverflow.com/questions/30517443/how-do-you-get-maya-to-communicate-through-the-localhost-ip