Hi guys, 
              running into a strange issue with viewport 2.0 that I was 
wondering if there's a solution to. I often use this script to take a 
screenshot of the active viewport to make a thumbnail:

         view = api_ui.M3dView.active3dView()
        mimage = api.MImage()
        view.readColorBuffer(mimage, True)
        mimage.writeToFile(self.screenshot_path, 'jpg') 

And I sometimes get a grey flat image with nothing else in it. I've tried 
setting readColorBuffer to False and I get a brown colored image instead.

I don't run into this issue with the Legacy viewports so I'm wondering if 
this is something only Maya2015 has. I'm using OSX 10.9.5 if that 
information helps. 

Thank you for any assistance rendered : ) 

Thank you
Gann Boon Bay

-- 
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/d6348ae0-567b-4dfa-8b86-f1dd1137a4a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to