Remember 3December
Find out where to celebrate your 3D CG art...
  • 1/3
You are here:Forum Home / Autodesk® Maya® / Python / commandPort doesn’t work in Vista 32
  RSS 2.0 ATOM  

commandPort doesn’t work in Vista 32
Rate this thread
 
23767
 
Subscribe to this thread
avatar
  • paolodom
  • Posted: 07 March 2009 06:46 PM
  • Total Posts: 1
  • Joined: 2006-11-15 00:18:31

It’s a problem I’ve found in Maya 2009 running on Vista 32.

if you open a port in Maya, you can’t access it because you get a “connection refused” error.

You can test it running this script in the python script editor

import socket
from maya import cmds
cmds
.commandPort(n=":7890")
socket.socket()
s.connect(("localhost"7890))
s.send("sphere")
s.shutdown(2)
s.close()

You should see a sphere in the origin, otherwise in the case you use maya 2009 on vista 32 you will see the connection refused error.
I think is a problem that has to do with IPv6. I disabled it in my vista but it keeps displaying the same error.

Any idea?



Replies: 0
avatar
  • agrant3d
  • Posted: 18 March 2009 08:34 PM
  • Location: New York
  • Total Posts: 18
  • Joined: 2008-12-09 04:27:37

I’m on Vista 64 and I’m not having any luck getting commandPort to work either.
Any input on whether this works would be great.



Replies: 0
avatar
  • agrant3d
  • Posted: 20 March 2009 09:23 PM
  • Location: New York
  • Total Posts: 18
  • Joined: 2008-12-09 04:27:37

After some trial and error I was able to get commandPort to consistently work.  I had it work sometimes, and then not other times.

I found that what I had to do is run the commandPort command twice. Like so:

commandPort -eo -"127.0.0.1:7890";
commandPort -eo -":7890";

Running only one of those commands would allow me to connect with Maya through telnet with Putty, but with Python I would get a ‘Connection refused’ error.  It was frustrating because as I was experimenting it would occasionally work when I ran the command in that order and it took me a while to figure out why.

I’m running 2009x64 on Vistax64, I don’t know if this is a problem in other versions or OSs.



Replies: 1
/img/forum/dark/default_avatar.png

Thanks.

I was trying to connect Cutter to MAya with a Vista system and had a similar connection problem. Your solution is brilliant.

Author: stephen_weber

Replied: 28 July 2009 04:49 PM  




   
  Settings Choose Theme color: