I finally had some time today to give this a go.

The kAfterUnloadReference worked great, but i found that the 
addUIDeletedCallBack only worked when the ui was deleted with code, and not 
when the X close button was pressed. So I was having a problem with 
callback trying to refresh a ui that wasn't there. Apparently when the X 
close button is clicked the ui is hidden, I think it still exists in some 
capacity, but was still causing my refresh function to fail. To get around 
this I got rid of the addUIDeletedCallBack and overrided the qt hideEvent 
function, and had that call removeCallbacks.

Thanks again for the help
Kyle

On Tuesday, December 8, 2015 at 2:27:22 PM UTC-5, combi wrote:
>
> Yeah, I understand, job priorities are sometimes very pressing!
> What I could say is that once you touch maya Python API, difficult to come 
> back from it!
>
> Le mardi 8 décembre 2015, Kyle Burris <kyleb...@gmail.com <javascript:>> 
> a écrit :
>
>> Hi Combi,
>>
>> Thanks for the reply, that looks really useful. I've had this page open 
>> as a tab in firefox for a week now, but production priorities changed and I 
>> haven't been able to touch the tool I was working on. I'll make a point of 
>> replying here once I get the time to take a stab at it.
>>
>> Thanks again
>>
>> -- 
>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/3aa75243-1e36-49ac-bd7e-ba89089cb2ed%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/3aa75243-1e36-49ac-bd7e-ba89089cb2ed%40googlegroups.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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/1c4cce54-ad12-47e1-8e3d-f2711564ae0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to