Sorry, I don't know, but here are some ideas.
Perhaps use MEventMessage.addEventCallback('idle', fn). I'm not sure when 
it would fire but it's likely to fire at the same time as a print statement 
makes it to the Script Editor.
You could look at MRenderer.addNotification with kBeginRenderSemantic.
Worst case, you could subclass MRenderOverride.


On Wednesday, 31 May 2017 06:30:59 UTC+10, likage wrote:
>
> I am trying to get the end if processing time taken when switching to 
> viewport2.0.
>
> In my code, I start off by doing custom settings in renderer then 
> switching to viewport 2.0
>
> However when switch, it took a while for Maya to process, like 3 to 5 
> seconds before I see the message 'viewport 2.0 is processing'..
>
> Is there any way that I can catch once the processing is done before I 
> execute my next function?
>
>

-- 
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/2f8e2f6f-96a4-4c03-b459-891eeee2af97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to