Take a screenshot of the scene with a transparent background

Hello,

As it is possible to get the canvas of the renderWindow, I was wondering if it’s possible to take a screenshot of the scene with a transparent?

Kind regards,
Zaid

Hi, yes you can. You will need to set the vtk renderer’s background to be transparent, like so:

renderer.setBackground(0, 0, 0, 0)