For 3ds max a OLE connection is possible!
I was able to open a maxscriptfile from the python commandline:
Code:
import win32com.client
conn = win32com.client.Dispatch("MAX.Application")
conn._FlagAsMethod("DoSomething")
conn.DoSomething("fileIn \"F:\Maps\sIbl\sIBL_loader_95.ms\"")
I would say this is easy, but would need the win32 extensions to be installed. I don't know if it's possible to deliver the sibl gui with the extensions, but the OLE connection would be a very nice way for me to implement the connection
Maybe you could add an template param where the python gui can decide how it will be connected to the 3d app:
Code:
Connection = @connectiontype | connectionname | String | Connection
in the case of the sample above and 3ds max it would be:
Code:
Connection = @OLE | DoSomething | String | Connection
You could offer different ways to connect back to the 3d app.
If maya don't want a socket connection, then you could go with OLE or something else and only have to write a "case of" expression (or however it is called in python) where you send the callback in the way the 3dapp can understand it.
In most cases it is a call to run a script and this could be also a param for the template:
Code:
executecall = @executecall | executecode | String | executecall
in my case it needs the fileIn "path..."
Code:
executecall = @executecall | fileIn "$path" | String | executecall