Ha, I take that back too. I hadn't realized I needed to do 
    pm.modelEditor(editor, e=True, rendererName="vp2Renderer")
I guess the apparent need for evalDeferred was a red herring due to 
something changing when I ran my script multiple times yesterday.

So, this works:
    editor = panel.getModelEditor()
    pm.runtime.ActivateViewport20()
    pm.modelEditor(editor, e=True, rendererName="vp2Renderer")
    pm.refresh()
    renderer = pm.modelEditor(editor, q=True, rendererDeviceName=1)
    if renderer != 'VirtualDeviceDx11':
        # Complain...


>>>

-- 
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/781ce2f9-1d6e-46bc-84e3-08406ac4c55c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to