ホームLastNewsAddon&Scripts › リモートソフト Softimage TCPServer

XSI Base Forum - TCPServer For Softimage

リモートソフト Softimage TCPServer

Land-Y
投稿者: Land-Y | 投稿日時: 2012-6-12 15:35
タグ: , , , , , ,

http://bit.ly/MoOXJX

XSIbase フォーラムより

Google翻訳より 

SoftimageのスレッドのTCPServerのへようこそ!
このアドオンは、リモートソフトイマージと
マヤcommandPortコマンドよりも
同様の方法でコントロールに接続することができます。
これは、2つの主な理由
sIBL_GUI_XSI_Serverのアドオンの代替として作成されています。

TCPServer_For_Softimage_0.1.0.jpg 

 


It has been created as a replacement for sIBL_GUI_XSI_Server addon for two main reasons:
  • The fact that sIBL_GUI_XSI_Server was a C# addon needing to be recompiled for each Autodesk Softimage version.
  • The need for a generic socket server that could be easily extended and modified because it's written in Python.

Instead of keeping it dedicated to sIBL_GUI, I decided to make it generic so that people can modify and extend it for their own needs.

Jules Stevenson gently provided me with an addon he wrote for his studio also allowing for remote control, it's available here:
http://groups.google.com/group/xsi_list/browse_thread/thread/e4afd49e263a5c36/01f72ee5b2c14cb3?lnk=gst&q=xsiserver#01f72ee5b2c14cb3

Some others examples exists, especially this one: http://www.softimageblog.com/archives/132
unfortunately they don't work anymore with current Softimage releases, resulting in application getting blocked while the code is e.xecuted.

I created 4 requests handlers examples that you can consult in the TCPServer.py file. The default one (DefaultStackDataRequestsHandler) accepts either an existing script file path or a string with the following formatting: Language | Code.

Here is a minimal Python client code to use that handler:

Code:

>>> import socket
>>> connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> connection.connect(("127.0.0.1", 12288))
>>> connection.send("JScript | LogMessage(\"Pouet\")")
29
>>> connection.send("C:/Users/KelSolaar/AppData/Roaming/HDRLabs/sIBL_GUI/4.0/io/loaderScripts/sIBL_XSI_Import.js")
91
>>> connection.close()

Change Log :

Click Here For Complete Change Log.

TCPServer For Softimage Addon:


Sources :

TCPServer For Softimage Source Code is available directly from a Git repository : TCPServer For Softimage On Github.

Enjoy!

KS

 

NewsTag

ホーム ニュース フォーラム UserBlog 道場Wiki
Powered by XOOPS Cube Legacy 2.1.7 2001-2009 XOOPS Cube Project
cvELD.net project [ Softimage & XSI道場 ] since 2004 1/1