Skip to main content
Participant
April 22, 2024
Question

Exporting 3d view using substance painter python API

  • April 22, 2024
  • 0 replies
  • 112 views
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 has been closed for replies.