To actually read data from color buffer and store it as file this code works:
view = OpenMayaUI.M3dView.active3dView() image = OpenMaya.MImage() view.readColorBuffer(image, True) image.writeToFile('whatever.jpg', 'jpg')
But, if I read the file, change the data and try to use 'writeColorBuffer' method, nothing changes. I do realize this worked till like 2015, so my question is what class and what methods should I use now to edit color buffer? I would like to do this using the Viewport 2.0. It looks like this is unresolved problem for more than 3 years, so any info will be appreciated.
To actually read data from color buffer and store it as file this code works:
view = OpenMayaUI.M3dView.active3dView() image = OpenMaya.MImage() view.readColorBuffer(image, True) image.writeToFile('whatever.jpg', 'jpg')
But, if I read the file, change the data and try to use 'writeColorBuffer' method, nothing changes. I do realize this worked till like 2015, so my question is what class and what methods should I use now to edit color buffer? I would like to do this using the Viewport 2.0. It looks like this is unresolved problem for more than 3 years, so any info will be appreciated.
Did you ever figure this out? are you talking about directly writing to the Maya color framebuffer?
Did you ever figure this out? are you talking about directly writing to the Maya color framebuffer?
Can't find what you're looking for? Ask the community or share your knowledge.