|
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") s = 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?
|
|
|
|
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.
|
|
|
|
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 -n "127.0.0.1:7890"; commandPort -eo -n ":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.
|
|
|