Hi, I’m looking for help with OpenMaya 2.0, I am trying to save a picture of my viewport in 1920x1080, but when I take the picture with this script, it export the image in the good dimension but the thumbnail is not adapted for the format.
The script :
import maya.api.OpenMaya as om
import maya.api.OpenMayaUI as omUIimage = om.MImage()
image.create(1920, 1080)view = omUI.M3dView.active3dView()
view.pushViewport(0, 0, 1920, 1080)
view.refresh()
view.readColorBuffer(image, True)view.popViewport()
image.writeToFile(“C:\tmp\test.jpeg”, outputFormat=“jpeg” )
My maya : https://drive.google.com/file/d/1l16DBP4wgU30RIGeCXyIpM745HA7KgQz/view?usp=sharing
The result :
If anyone know how to fix this problem, they are welcome
Thank you !