Question
Exporting 3d view using substance painter python API
How do we use the substance painter python API to export the 3d viewer view of the asset?
I tried this:
view_3d = window.findChild(QtWidgets.QWidget, 'Viewer3D')
and use
pixmap = QtGui.QPixmap.grabWindow(widget.winId(), rfg.left(), rfg.top(), rfg.width(), rfg.height())
pixmap.save(filename, file_format)
to grab the screenshot. on my computer it works, but on my friend''s computer, they always export a pure white image.
Anyone know a robust way to do this?
