Call maya's command from outer application or command shell

48 views
Skip to first unread message

illunara

unread,
Apr 7, 2015, 1:03:29 AM4/7/15
to python_in...@googlegroups.com
Hi everybody
Can i control an instance of maya's application, calling maya's command from command shell or other application?
Mayapy is not an option, i guess.
Thank ;)

Justin Israel

unread,
Apr 7, 2015, 2:06:07 AM4/7/15
to python_in...@googlegroups.com
You can refer to my MayaSublime plugin:
https://github.com/justinfx/MayaSublime/blob/master/MayaSublime.py

I'm doing basically that, connecting to Maya's command port, over telnet. 


--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b218a2a2-b29c-4d2d-a630-fe9337a6bcb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fredrik Averpil

unread,
Apr 7, 2015, 2:07:06 AM4/7/15
to python_in...@googlegroups.com
You can run Maya in headless mode or communicate with it via command ports.

Regards,
Fredrik

--

Chris Gardner

unread,
Apr 7, 2015, 2:12:40 AM4/7/15
to python_in...@googlegroups.com
You can also use some sort of rpc system if you want to run maya like a remote python interpreter - i've used zeromq in the past (look up Rob's dccautomation) and have used rpyc just recently. pretty nice and seamless.

so many options... ;)

cheers,
chrisg




Tuan Nguyen

unread,
Apr 7, 2015, 2:56:15 AM4/7/15
to python_in...@googlegroups.com
I love you guys so much, thank for quick and and clearly reply.
Since we can use Eclipse as maya IDE, i think it possible too, and you guys give me a lots more option than that.
I think i will go with Justin's plugin ;)
Reply all
Reply to author
Forward
0 new messages