I think its a problem with our setup. Vanilla Maya works, but it doesnt
when it's launched in our environment. We are trying to find the problem.
Thanks,

Danny Wynne
www.dannywynne.com


On Thu, Mar 6, 2014 at 8:57 PM, Justin Israel <[email protected]>wrote:

> This has more to do with the wrapinstance() differences as opposed to the
> getCppPointer(), which is called unwrapinstance() in sip.
> I think Danny was saying the problem was in the getCppPointer call?
>  On Mar 7, 2014 5:40 PM, "Geordie Martinez" <[email protected]>
> wrote:
>
>> I seem to remember this post by Nathan Horne says you have to modify the
>> shiboken method to get the right pointer ( to get the equivalent of what
>> sip would return to you):
>> http://nathanhorne.com/?p=485
>>
>>
>> On Thu, Mar 6, 2014 at 5:42 PM, Justin Israel <[email protected]>wrote:
>>
>>> I don't have a Maya 2014 handy but I can check again on Monday
>>> I tested in a shell.
>>> On Mar 7, 2014 2:12 PM, "Daniel Wynne" <[email protected]> wrote:
>>>
>>>> dang.
>>>> It seems to work in vanilla Maya, so it must be our setup here. Thats
>>>> too bad.
>>>> Thanks,
>>>> (Im on windows 7, maya 2014)
>>>>
>>>> Danny Wynne
>>>> www.dannywynne.com
>>>>
>>>>
>>>> On Thu, Mar 6, 2014 at 11:51 AM, Justin Israel 
>>>> <[email protected]>wrote:
>>>>
>>>>> I had to correct the syntax to:
>>>>>
>>>>> as_ptr = long(shiboken.getCppPointer(orig)[0])
>>>>>
>>>>> But it didn't crash for me. This is with the latest brew install of
>>>>> PySide on osx
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Mar 7, 2014 at 6:45 AM, Danny Wynne <[email protected]>wrote:
>>>>>
>>>>>> I'm wondering if anyone else has experienced this and has a work
>>>>>> around? Maybe I need to recompile shiboken?
>>>>>> thanks,
>>>>>> example
>>>>>>
>>>>>> import PySide.QtGui as QtGui
>>>>>> import shiboken
>>>>>> orig = QtGui.QWidget() #Generic QWidget we want to cast
>>>>>> as_ptr = long(shiboken.getCppPointer(orig))
>>>>>> casted = shiboken.wrapInstance(as_ptr, QtGui.QLineEdit)
>>>>>>
>>>>>> thanks,
>>>>>>
>>>>>>  --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>>
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/python_inside_maya/91a83722-eb6e-4fe3-a1b8-2b05f5ac78c2%40googlegroups.com<https://groups.google.com/d/msgid/python_inside_maya/91a83722-eb6e-4fe3-a1b8-2b05f5ac78c2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/python_inside_maya/xq-q3EybUIg/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0%3DbwLUBYcS4c24ndMf387Tt2G4Fao%2BG-AmzX5TFQ%2B-Vw%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0%3DbwLUBYcS4c24ndMf387Tt2G4Fao%2BG-AmzX5TFQ%2B-Vw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Python Programming for Autodesk Maya" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/CAO1VJHiJAkk_hXAJ3HC5gUmm2KB-0Gy8QG%3DfLh2JmJzNmki0JA%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAO1VJHiJAkk_hXAJ3HC5gUmm2KB-0Gy8QG%3DfLh2JmJzNmki0JA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>  To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2wKg-tMPQ9c4FHib-1Gg-prU%3DKguMjqrVit-iSLA3i%2BQ%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2wKg-tMPQ9c4FHib-1Gg-prU%3DKguMjqrVit-iSLA3i%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jrCLHP14zxgwS%3DLxTcj4S_%2BT5NU2yA%3D3p2wYy1RqHbYg%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jrCLHP14zxgwS%3DLxTcj4S_%2BT5NU2yA%3D3p2wYy1RqHbYg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/xq-q3EybUIg/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2xT2eUv3an6jep8TsSSn0TtBAEJgxgqUUSFkZxg8dSDQ%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2xT2eUv3an6jep8TsSSn0TtBAEJgxgqUUSFkZxg8dSDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAO1VJHjWi%2B3SLGrMQbgwS6uSVig%2BMnYT2oTWWeAprJBEZ7KDsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to