Message 1 of 2
How to edit color buffer?
Not applicable
09-25-2018
12:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.