Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Open Socket in Maya using Python?
  RSS 2.0 ATOM  

Open Socket in Maya using Python?
Rate this thread
 
63364
 
Permlink of this thread  
avatar
  • wesm
  • Posted: 07 January 2012 06:32 AM
  • Location: Louisville Kentucky
  • Total Posts: 204
  • Joined: 22 August 2006 01:27 PM

Hey,

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

import socketsys
maya 
socket.socket(socket.AF_INETsocket.SOCK_STREAM)
maya.connect(("localhost"5055))

However, I keep getting the following error…

errorfile <stringline 161 #

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



Wes McDermott | 3D Artist | Author
http://the3dninja.com
http://the3dninja.com/blog

Replies: 0