Open Socket in Maya using Python?

Open Socket in Maya using Python?

Anonymous
Not applicable
887 Views
0 Replies
Message 1 of 1

Open Socket in Maya using Python?

Anonymous
Not applicable
Hey,

I am trying to open a socket in Maya for sending information out of Maya. I am trying the following code...

import socket, sys
maya = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
maya.connect(("localhost", 5055))


However, I keep getting the following error...

error: file <string> line 1: 61 # 


I'm not sure what the problem is. I only get the error if I execute the maya.connect line. Can someone please point me in the right direction?

Thanks,

Wes
0 Likes
888 Views
0 Replies
Replies (0)