sockets - Maya crash in Python script -
i'm new python, exploring can't execute program because maya crashes. don't know more. everytime execute python script in script editor have quit maya , restart it, because de program won't respond. code i'm using is: import socket import maya.cmds cmds udp_ip="localhost" udp_port=6001 sock = socket.socket( socket.af_inet, socket.sock_dgram ) sock.bind((udp_ip, udp_port)) while 1: data= sock.recv(1024) print (data) datasplit=data.split(';') print (datasplit) mylist=[] in range (0, len(datasplit)): mylist.append(int(datasplit[i])) print(mylist) cmds.setattr('ik_root.movex',mylist[0]) cmds.setattr('ik_root.movey',mylist[1]) cmds.setattr('ik_root.movez',mylist[2]) cmds.refresh() any help? the while loop has no exit, you'll stuck in listen-and-process mode forever. call socket.recv blocking, won't able interact maya @ while script running - s...