Hey Martin

Thanks for your detailed response!

This PYTHONHOME thing is definitely new, I wonder if this is unique to
Softimage 2015 R2-SP2, er whatever Autodesk left us with, or if it has to
do with Windows 10 and Python?

This 'Out of present range' is sounding more like what Takayoshi was
pointing out... The size of the return value.

Are you setup to compile the C++ part of the plugin on Windows 10? If you
could do that and replace the one in the workgroup and see what happens
that would be great.

Steven

On Thu, Jun 30, 2016 at 6:15 AM, Martin Chatterjee <
[email protected]> wrote:

> Hi Leendert, hi Steven,
>
>
> * Did you try creating and setting the environment variable "PYTHONHOME"
>> to the path of your "external" Python?*
>>
>
>
> Oh, is that supposed to be necessary? Having to set that sort of defies
> the usefulness of the Soft preferences checkbox, doesn't it?
>
> *Anyway, I gave it a try:*
>
> a.) With PYTHONHOME set to my external Python and 'use external Python' *off
> *I don't have Python support at all anymore inside Soft.
>
> b.) But with PYTHONHOME set to my external Python and 'use external
> Python' *on  *I can sucessfully use my external Python inside Soft.
>      ( verified by calling     *import os; LogMessage(os.__file__) *
>   )
>
> ----
>
>
> *Now that I have that part up and running I did:*
>
> a.) install *PySide 1.2.2 *into my external Python (verified by running   
> *from
> PySide.QtCore import **   in a standalone Python shell)
>
> b.) verify that Pyside can be imported inside Softimage (again verified by
> running   *from PySide.QtCore import **   in the Script Editor)
>
> c.) installed* PyQtForSoftimage_beta6.xsiaddon* into a fresh workgroup,
> and restarted Soft.
>
> d.) After startup verified that there are no errors on load, checked the
> Plugin Manager to make sure that all plugins got loaded without errors
>
> e.) Called *Application.ExampleDialog().*
>
>
> *This fails with this error on my side as well:  *
>
> *# ERROR : Traceback (most recent call last):*
> *#   File "<Script Block 2>", line 156, in ExampleDialog_Execute*
> *#     sianchor = Application.getQtSoftimageAnchor()*
> *#   File "<COMObject Application>", line 2, in getQtSoftimageAnchor*
> *# COM Error: Out of present range. (0x-7ffdfff6) - [line 155
> in 
> C:\TEMP\DBG_WG\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]*
> *# ERROR : OLE error 0x80020101*
> *Application.ExampleDialog()*
> *# ERROR : Traceback (most recent call last):*
> *#   File "<Script Block >", line 1, in <module>*
> *#     Application.ExampleDialog()*
> *#   File "<COMObject Application>", line 2, in ExampleDialog*
> *# COM Error: Exception occurred. (0x-7ffdfff7) - [line 1]*
>
>
> Cheers, -M
>
> --
>        Martin Chatterjee
>
> [ Freelance Technical Director ]
> [   http://www.chatterjee.de   ]
> [ https://vimeo.com/chatterjee ]
>
>
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected]
> with "unsubscribe" in the subject, and reply to confirm.
>
------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to