Not sure how to approach the problem though.
By applying what can be learnt from http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=11154 to Stevens qtsoftimage.cpp (https://github.com/caron/PyQtForSoftimage/blob/master/src/QtSoftimage/qtsoftimage.cpp) Find attached a very basic test version I put together on Tuesday that should just respond to mouse clicks by printing out which mouse button was pressed (replace stevens dll with this one, restart softimage and in the plugin manager right-click on the getQtSoftimageAnchor command of the plugin and choose Invoke... from the popup menu. Aaaaand...what you get is an instant fast exit to the desktop, and I'm entirely clueless why. I tried a couple of things (inlcuding using WH_MOUSE_LL instead of WH_MOUSE in line 110, which at least doesn't crash but simply does nothing else either). I get the same result using the "listenerKeyboard" procedure starting at line 93, btw. If ne1 with more indepth knowledge of win32api, ctypes, mouse and keyboard hooks wants to take a closer look please be my guest, it would be cool to get this running and not having to compile anything for each new version of QT, PySide or Softimage, including hope for a working Linux version. Any hints are highly welcome too. Of course, there's also a good chance that this can never work due to architectural restrictions (e.g. the way Python is talking to Softimage), but what do I know. Any ideas? Cheers, Stefan
On Fri, Oct 5, 2012 at 10:48 AM, Stefan Kubicek <s...@tidbit-images.com>wrote:Alan, do you know how Python talks to Softimage on Linux? Afaik on Windows it's based on COM and the PyWin32 extensions, but on Linux? I understand Softimage is run under MainWin, but does that include Python and PyWin32? If so, there might be a way. I'm currently looking into running Qt-based stuff in XSI using Python only (no C++), but it will definitely need the pyWin32 extensions for the mouse hooks. That's a shame for people on Linux for which there is no public workingcompile of the PyQtForSoftimage plugin. :/ On Fri, Oct 5, 2012 at 10:30 AM, Stefan Kubicek <s...@tidbit-images.com >wrote: None that I'm aware of, but afaik the latest multi-importer (1.14 as ofAugust?) uses pyQt, so you might need pyQT for Softimage installed too. Version 1.1 doesn't, according to the information given on http://rray.de/xsi/ Check out www.rray.de Ok, can check that off the list! Tim spent a good bit of time yesterdaytrying to help me get this going (thanks again Tim!) but to no avail. Were there any changes to how xsiaddons install between Softimage 2012, 2012sp1, 2012 SAP (sorry, I forget all the different flavors of point releases for 2012)?? From: softimage-bounces@listproc.**a**utodesk.com <http://autodesk.com> <softimage-bounces@**listproc.autodesk.com<softimage-boun...@listproc.autodesk.com> >[mailto: softimage-bounces@**listproc.**autodesk.com<http://listproc.autodesk.com> <softimage-**boun...@listproc.autodesk.com<softimage-boun...@listproc.autodesk.com> >**] On Behalf Of Szabolcs Matefy Sent: Friday, October 05, 2012 9:04 AM To: softimage@listproc.autodesk.****com <softimage@listproc.autodesk.** com <softimage@listproc.autodesk.com>> Subject: RE: Installing AddOns Softimage 2012 SP1 I’m afraid, meshpaint is 2013.x exclusive… From: softimage-bounces@listproc.**a**utodesk.com <http://autodesk.com> <softimage-bounces@**listproc.autodesk.com<softimage-boun...@listproc.autodesk.com> >[mailto: softimage-bounces@**listproc.**autodesk.com<http://listproc.autodesk.com> <softimage-**boun...@listproc.autodesk.com<softimage-boun...@listproc.autodesk.com> >**] On Behalf Of Williams, Wayne Sent: Friday, October 05, 2012 2:58 PM To: softimage@listproc.autodesk.****com <softimage@listproc.autodesk.** com <softimage@listproc.autodesk.com>> Subject: Installing AddOns Softimage 2012 SP1 Using Softimage 2012 SP1 64 on Win 7 64 bit here. I came across a couple of really handy xsiaddons but cannot seem to get them going. The first was Tim Crowson’s multi-importer tool here: http://dynamiclens.com/****wordpress/?page_id=750<http://dynamiclens.com/**wordpress/?page_id=750> <http://**dynamiclens.com/wordpress/?**page_id=750<http://dynamiclens.com/wordpress/?page_id=750> > The next was meshpaint by Piotrek Marczak here: http://vimeo.com/47094105 I have tried to install them via drag and drop to the interface but they don’t show up in the menu. I uninstalled, rebooted Soft and then tried File>Addon>Install and pointed to the file that way, installing to the User Addons directory. I see them installed in there but they still don’t show in the menus back in Softimage. Uninstalled them and tried to install via Plugin Manager by right clicking the User Root and installing xsiaddon that way. Same deal. See them there in : C:\Users\Wayne Williams\Autodesk\Softimage_**** 2012_SP1\Addons but still won’t show up in the interface. Anyone have any idea what I might be doing wrong here?? Wayne Williams Venerable Geneticist, Human Coercion Senior Character Artist wayne.willi...@xaviant.com<****mailto:wayne.williams@xaviant.****com< wayne.williams@xaviant.**com <wayne.willi...@xaviant.com>> > Xaviant Cell 770.722.0778 http://www.xaviant.com Where all will be made clear-- ------------------------------****------------- Stefan Kubicek Co-founder ------------------------------****------------- keyvis digital imagery Wehrgasse 9 - Grüner Hof 1050 Vienna Austria Phone: +43/699/12614231 --- www.keyvis.at ste...@keyvis.at --- -- This email and its attachments are --confidential and for the recipient only---- ------------------------------**------------- Stefan Kubicek Co-founder ------------------------------**------------- keyvis digital imagery Wehrgasse 9 - Grüner Hof 1050 Vienna Austria Phone: +43/699/12614231 --- www.keyvis.at ste...@keyvis.at --- -- This email and its attachments are --confidential and for the recipient only--
-- ------------------------------------------- Stefan Kubicek Co-founder ------------------------------------------- keyvis digital imagery Wehrgasse 9 - Grüner Hof 1050 Vienna Austria Phone: +43/699/12614231 --- www.keyvis.at ste...@keyvis.at --- -- This email and its attachments are --confidential and for the recipient only--
SoftimagePyMouseHook_test.py
Description: Binary data