如何使Maya通过本地IP进行通信? [英] How do you get Maya to communicate through the localhost IP?

查看:147
本文介绍了如何使Maya通过本地IP进行通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在进行的运气研究是如何使Autodesk Maya通过本地ip(最好是TCP)上的网络进行通信.我的目标是使用我编写的用于操纵曲线选择等的快速Java应用程序来控制maya.如果有办法在mel脚本中做到这一点,那就太好了.

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.

推荐答案

Maya包含

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

示例: http://fredrik.averpil.com/post/55507118045

在独立的Maya中打开commandPort进行单元测试

使用外部python脚本打开maya并在maya中运行另一个脚本

这篇关于如何使Maya通过本地IP进行通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆