Message 1 of 3

Not applicable
06-19-2021
06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- 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 omUI
image = 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 :
The result :
If anyone know how to fix this problem, they are welcome
Thank you !
Solved! Go to Solution.