I’ve had good luck with it for simple tasks like updating GUIs.

Ah, are you then also calling executeDeferred() from a separate thread,
without first wrapping it into a executeInMainThreadWithResult?
​

On 21 November 2014 at 16:39, Robert White <[email protected]>
wrote:

> I've had good luck with it for simple tasks like updating GUIs.
>
> I also use it as part of my startup sequence for any tasks that need to
> build/tweak/change maya's default GUIs, because not enough of the maya
> environment is loaded during userSetup.py's execution. But if you defer
> those tasks, the idle queue won't be processed until after maya is done
> loading, and by then if the GUI isn't there, you've got bigger problems.
>
>
>
> On Friday, November 21, 2014 10:03:14 AM UTC-6, Marcus Ottosson wrote:
>>
>> Thanks, Robert. Makes sense now.
>>
>> Which is why this does work if you just use executeDeferred(), which
>> doesn’t block in the same way.
>>
>> Do you have experience with this across threads? Since it doesn’t return
>> anything it’s a little tricky as a replacement, but if it’s thread-safe
>> then I’ll certainly keep it in mind.
>> ​
>>
>  --
> 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/30006d28-8193-4db8-b85b-a38cbf6e7964%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/30006d28-8193-4db8-b85b-a38cbf6e7964%40googlegroups.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/CAFRtmOBU%3DPmn1remoH2La_rjWOiCke%2BkCnaROc4BY%3DWMv%2BdqWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to