Skip to main content
Participant
April 22, 2024
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?
This topic is closed to new replies. Start a new post to keep the conversation going.