[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt app inside Softimage XSI
From:       Guy Dubost <gdubost () gmail ! com>
Date:       2011-02-26 20:02:18
Message-ID: AANLkTikiF6UWdD+hLANxvW4UE4uz=Ovg00+m8Nd=Mb39 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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@riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>

[Attachment #5 (text/html)]

<div>thx for reply</div>
<div> </div>
<div>I ll study qtwinmigrate</div>
<div>for second python run with win32com.client inside XSI so must be pretty much the \
same as 3Dmax.<br><br></div> <div class="gmail_quote">2011/2/26 zhang jian <span \
dir="ltr">&lt;<a href="mailto:zhangmdev@gmail.com">zhangmdev@gmail.com</a>&gt;</span><br>
 <blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; \
PADDING-LEFT: 1ex" class="gmail_quote">Hi,  <div><br></div>
<div>I managed to create run PyQt inside 3ds Max days before, I know no XSI, but the \
principle is same. I use </div> <div><br></div>
<div><a href="http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html" \
target="_blank">qtwinmigrate</a></div> <div><br></div>
<div><a href="http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html" \
target="_blank"></a>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.</div>

<div><br></div>
<div>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?</div> <div><br></div>
<div><br></div>
<div>zhang</div>
<div><br></div>
<div><br><br>
<div class="gmail_quote">
<div>
<div></div>
<div class="h5">On Sun, Feb 27, 2011 at 12:07 AM, Guy Dubost <span dir="ltr">&lt;<a \
href="mailto:gdubost@gmail.com" target="_blank">gdubost@gmail.com</a>&gt;</span> \
wrote:<br></div></div> <blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px \
0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"> <div>
<div></div>
<div class="h5">
<div>Hi , </div>
<div> </div>
<div>I make some tests to run PyQt within Softimage (3D app) but the question could \
be for any app Python-able</div> <div> </div>
<div>I can create a Qt window and call func from XSI  API</div>
<div>but what I cannot do is get the window more linked to SoftImage, that \
means:</div> <div>- Qt window as a child of XSI (I could minimize both windows \
together)</div> <div>- Linked XSI events to drive Qt func </div>
<div> </div>
<div>So my question is </div>
<div>Is there a way to pass a Window handle (the one of XSI) to a QT widget like the \
AssociateHandle from WxPython Framework. </div> <div>There is one to retrieve the \
-&gt;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)</div> <div> </div>
<div>Any advice or experience would be appreciated .</div>
<div> </div><font color="#888888">
<div>Guy</div></font><br></div></div>_______________________________________________<br>PyQt \
mailing list    <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br><a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></div><br></div></blockquote></div><br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic