Hi!
sorry for the noob question:
is there a way for you to create python commands outside maya (python)
to communicate with maya?
Basically i have a GUI that is coded from python(outside maya) which i want to communicate with maya’s commands?
any possible ways?
thanks in advance.
Peter
it’s possible, but there are a lot of factors involved.
first try to search some basic things like maya commandport or pyhtons socket.
form there on you need to import maya.cmds in some way to acces maya
if you use commandport or socket you will need to open up a port within maya so best thing to do is or open the gui wihtin maya or open maya with the gui and set a startupscript that opens the port on startup
hope this helps and gives you some search ideas
That’s not hard to set up. I have a working example showing how to do that with Maya in the examples download from my 2008 GDC talk, Python for Technical Artists.
See “createSpheresMaya.py” in the COM folder of the examples download, posted on the Volition GDC Archive.
@peerke88, thanks, that gave an idea…
@Adam Pletcher, thank you for the link. and that’s one very informative link!
thank you for your replies!