[PyQt] PyQt app inside Softimage XSI

Guy Dubost gdubost at gmail.com
Sat Feb 26 20:02:18 GMT 2011


thx for reply

I ll study qtwinmigrate
for second python run with win32com.client inside XSI so must be pretty much
the same as 3Dmax.

2011/2/26 zhang jian <zhangmdev at gmail.com>

> Hi,
>
> I managed to create run PyQt inside 3ds Max days before, I know no XSI, but
> the principle is same. I use
>
> qtwinmigrate<http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html>
>
> <http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html>it
> can hook a special qt widget inside any hwnd (MFC only) you give. It does
> appear to be a child window inside 3ds max. You need (boost) python C API to
> embed Python inside the C/C++ app, plugin in this case.
>
> Second question is tricky, I solve this problem in Max by using COM/DCOM.
> Register 3ds Max as a COM server, so pywin32 can connect 3ds Max to do
> stuff, and vice versa. Does XSI have COM?
>
>
> zhang
>
>
>
>   On Sun, Feb 27, 2011 at 12:07 AM, Guy Dubost <gdubost at gmail.com> wrote:
>
>>   Hi ,
>>
>> I make some tests to run PyQt within Softimage (3D app) but the question
>> could be for any app Python-able
>>
>> I can create a Qt window and call func from XSI  API
>> but what I cannot do is get the window more linked to SoftImage, that
>> means:
>> - Qt window as a child of XSI (I could minimize both windows together)
>> - Linked XSI events to drive Qt func
>>
>> So my question is
>> Is there a way to pass a Window handle (the one of XSI) to a QT widget
>> like the AssociateHandle from WxPython Framework.
>> There is one to retrieve the ->WinId() but I dont see anything to set the
>> ID or associate a parent (reparent() maybe) that is not a QWidget (Sotimage
>> is not a Qwidget)
>>
>> Any advice or experience would be appreciated .
>>
>> Guy
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110226/2da25137/attachment.html>


More information about the PyQt mailing list