MayaConnector
Send command to Maya and stream its output
Install / Use
/learn @leixingyu/MayaConnectorREADME
About The Project
<br> <div align="center"> <img src="https://i.imgur.com/89SJibG.gif" alt="maya-connector" width="100%"/> </div>Although there are a lot of tools that can run internally in Maya which facilitate the pipeline. The capability of communicating (monitor and control) with Maya externally is very handy.
I covered the development of this tool in more detailed here: Part 1 | Part 2.
This tool has two major components:
- command port: sending commands to maya to execute
- output streaming: actively listening/receiving maya outputs
Getting Started
Prerequisites
-
Qt: a module that supports different python qt bindings
or alternatively, change the code below to whatever qt binding you have on your machine.
from Qt import QtWidgets, QtCore, QtGui from Qt import _loadUi
Launch
-
Unzip the maya-connector package
-
Launch Maya and open port
5050:import maya.cmds as cmds port = 5050 if not cmds.commandPort(":{}".format(port), query=True): cmds.commandPort(name=":{}".format(port)) -
Run
main.pythroughmayapyorpythonexternally -
Click the connect button to establish streaming connection
-
Use the tool like an external script editor
Features
- code editor with syntax highlighting and line counter
- save/open script
- execute selected script or all
- clear viewport
Reference
Google Group - Receiving data from commandPort
Stack Overflow - c socket programming, only receiving one line at a time
CG Talk - Telnet or Socket: no result back from Maya
Youtube - Python Socket Programming Tutorial
Maya Help - OpenMaya.MCommandMessage Class Reference
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
