[PyQt] PyQt app inside Softimage XSI

zhang jian zhangmdev at gmail.com
Sat Feb 26 16:58:04 GMT 2011


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/20110227/6134c756/attachment.html>


More information about the PyQt mailing list