You could use OpenImageIO to read and sample the image. On Sat, 6 Dec 2014 10:04 AM Arvid Schneider <[email protected]> wrote:
> So I figured out that it would work with saving mayas rendered image as an > exr and use local pixel values to query the rgb values. > The problem is that Qt doesnt work with exr files natively and I need to > find another way. > But thanks you two for the help. > > > On Thursday, December 4, 2014 6:02:10 PM UTC+1, Arvid Schneider wrote: >> >> Hey Group, >> >> me again. I am trying to grab the image from mayas render view using >> QImage. What I am doing right now is grabbing the whole view with >> "QtGui.QPixmap.grabWindow(QtGui.QApplication.desktop().winId(), 0, 0, >> -1, -1).toImage()" >> It would be great if this was an 32bit image, but the grabWindow >> probabbly just grabs 8Bit. >> >> Can you help me out getting a float image directly from mayas native >> render view? >> Or grabbing the whole viewport as an 32bit image? >> Arvid >> > -- > 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/734fb17a-3705-4772-b32e-45404c8e572a%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/734fb17a-3705-4772-b32e-45404c8e572a%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA203BR%2B8V4YrxpKudb2MngqDQxTdfw8GFX_pUtaycFNBw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
