Btw.I'm not sure if you can do it in python in VP 2.0. It's possible that its only implemented as C++ atm.
On Tuesday, November 4, 2014 11:44:41 PM UTC+1, Bay wrote: > > 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1abec79c-f77e-4ad5-8a86-f9a1b86764c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.