Arigato Takayoshi! I will look at what you have found and your proposed fixes. I am really saddened to think I need to ship a custom build of PySide. Changing the python or the Softimage command for returning the anchor I can live with. I still need to get access to a Windows 10 machine to really be of any help yet.
Steven On Fri, Jul 1, 2016 at 1:44 AM, Takayoshi Matsumoto <yamahiga...@gmail.com> wrote: > Here are the links, > > > https://www.dropbox.com/s/9x9k3u27v2oslmr/PyQtForSoftimage_win10_returnedvalue.xsiaddon?dl=0 > > https://www.dropbox.com/s/y1mfleopvx5cr2w/PySide-1.2.4-cp27-cp27m-win_amd64.whl?dl=0 > > Note: > getQtSoftimageAnchor does not return "long" value anymore, but return > as unicode (or str) value in python. so where invoking this command > in, you have to change your python code to removing explicit cast > like, > > ```python.diff > - sianchor = Application.getQtSoftimageAnchor() > - sianchor = Qt.wrapinstance(long(sianchor), QWidget) > > + sianchor = Application.getQtSoftimageAnchor() > + sianchor = Qt.wrapinstance(sianchor, QWidget) > ``` > > Full diff of PyQtForSoftimage is here: > > https://github.com/yamahigashi/PyQtForSoftimage/commit/e87f74f21d5f11080ea74c96ba525a3c43511c6a > > and PySide is: > https://gist.github.com/yamahigashi/f2374c3b6f29f11852c2e7d55cf89f6f > > best, Takayoshi > > 2016-07-01 15:49 GMT+09:00 Takayoshi Matsumoto <yamahiga...@gmail.com>: > > Hi all, > > > > OK, we've done ;) It works on Windows10(64bit) + Softimage2015(SP1) + > > external Python(2.7.11) + PyQtForSoftimage(samples) and Kraken!! > > > > I've tryed to build PyQtForSoftimage for avoiding limitation of return > > value's size, returning as CString value and then parse it into > > long(ptr, 16) later on python. This seems ok. > > But... unfortunately I encountered a another problem > > > http://tech-artists.org/forum/showthread.php?3949-pyside-and-wrapInstance > > , https://bugreports.qt.io/browse/PYSIDE-103 > > So I built PySide modified "unsigned long" into "size_t". This also > > seems ok. And after short modfied on py scripts invoking > > "Qt.wrapInstance(ptr, base)", all samples work! and Kraken launch > > again! > > I will redistribute PyQtForSoftimage( or pull request) and PySide later. > > > > # summary Win10 + Soft2015: > > > > ## external python does not work > > > > solutions: > > * set environment variable "PYTHONHOME" > > * (pywin ?) > > > > > > ## crash or got error "Out of present range. (0x-7ffdfff6)" when > > calling getQtSoftimageAnchor > > > > problem: > > The limitation of size of returned value on Command > > > > solution: > > custom build > > > > > > ## PySide's strange behaviour (dialog disappear shortly, crash) > > > > problem: > > Official PySide's shiboken.wrapInstance has overflow bug > > > > https://bugreports.qt.io/browse/PYSIDE-103 > > > http://tech-artists.org/forum/showthread.php?3949-pyside-and-wrapInstance > > > > solution: > > custom build > > > > offtopic: > > I think other dcc applications that include PySide are avoiding > this issue. > > > http://www.autodesk.com/company/legal-notices-trademarks/open-source-distribution > > > > > > cheers, > > > > Takayoshi > > >
------ Softimage Mailing List. To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.