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® Softimage® / XSI SDK / Maya commandPort Equivalent In XSI
  RSS 2.0 ATOM  
2 pages: 1.2 first

Maya commandPort Equivalent In XSI
Rate this thread
 
30106
 
Permlink of this thread  
avatar
  • scaron
  • Posted: 18 September 2008 07:10 PM

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…



Replies: 0
avatar

[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 ^^



Replies: 0
avatar
  • scaron
  • Posted: 18 September 2008 08:36 PM

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



Replies: 0
avatar

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.socketsocket.AF_INETsocket.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()


Replies: 0
avatar
  • kim aldis
  • Posted: 20 September 2008 06:49 AM

[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.



Replies: 0
2 pages: 1.2 first