That would have been acceptable, but it actually locks Maya up when used
from within a thread as well. Seems no matter how I twist and turn, that
call called from within another call locks Maya up.

On 21 November 2014 12:46, Eduardo Grana <[email protected]> wrote:

> Hey Marcus,
>
> Maybe it's like nuke's similar command, that is only meant to be used
> inside other threads, and not the main one...
> Just thinking out loud...
> Cheers!
> Eduardo
>
>
> On Fri, Nov 21, 2014 at 9:02 AM, Marcus Ottosson <[email protected]>
> wrote:
>
>> This locks up Maya.
>>
>> from maya import utils
>> def nested_func():
>>     print "Hello world"
>> def func():
>>     utils.executeInMainThreadWithResult(nested_func)
>>
>> utils.executeInMainThreadWithResult(func)
>>
>> Though I can currently work around it, I can’t quite understand why it
>> would lock up.
>> ​
>> --
>> *Marcus Ottosson*
>> [email protected]
>>
>> --
>> 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/CAFRtmOB0ag9qydyNXS-CqKuhvUf%2BBEAXQxnsqxPhWamF%2BXinyQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOB0ag9qydyNXS-CqKuhvUf%2BBEAXQxnsqxPhWamF%2BXinyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Eduardo Graña
> www.eduardograna.com.ar
>
> --
> 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/CACt6GrmATAuHuAzhpY%2BXgECBKXGJtGJG2%2BgOwU8KWs6MFVRDPg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CACt6GrmATAuHuAzhpY%2BXgECBKXGJtGJG2%2BgOwU8KWs6MFVRDPg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

-- 
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/CAFRtmODLe6krs2MqnabpL_PXRwGQ4%2BJH7ah_8bEFHuCJfGqowQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to