|
sorry i can’t help thomas
maybe try the xsi mailing list, there maybe some more users on there experienced with this area. if not it seems is the next best place to go…
|
|
|
|
[quote=scaron;11403]sorry i can’t help thomas
maybe try the xsi mailing list, there maybe some more users on there experienced with this area. if not it seems is the next best place to go...
yeah I think I’ll definitely do that. I’ll report if anything positive happen and we found a solution to this ^^
|
|
|
|
i am on that list so i am sure i will hear about it directly… but whatever your experience is with this definitely needs to be shared and put on the wiki
|
|
|
|
Woot ! Got it to work finally :)
In fact the server is sending some data back, and it seem that if you don’t have an object to receive it, XSI is crashing.
the solving code is this line :
cDataBack = cSocket.recv(256)
That mean that cDataBack receive data from the socket, and 256 is the buffer size of the data received.
Full Connection Code :
import socket
cSocket = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) cSocket.connect( ( "localhost", 10000 ) ) cCommand = "script|C:/DOCUME~1/KELSOL~1/LOCALS~1/Temp/sIBL_XSI_Import.js" cSocket.send(cCommand) cDataBack = cSocket.recv(256) cSocket.close()
|
|
|
|
[quote=Kel Solaar;11120]Hello o/
Is there a way to send remote commands to XSI like with maya and it’s commandPort command ? There is an example by Kim Aldis on XSI-Blog ( http://www.xsi-blog.com/archives/132 ) but the thing is that xsi is stuck untill something come through the socket or the connection timeout. It’s pretty annoying to have the software frozen :[ Anyone has an idea to achieve this ?
Thanks,
Thomax
I haven’t looked at this for as while and I’m not in front of xsi right now but it shouldn’t hang, the select should be preventing it. If I get a moment I’ll check it out.
|
|
|