Capture 3D view into PNG file with transparent background not working as expected

aliabidi
Tue, 07 Jun 2022 00:18:14 +0000
Support

I have a 3D image which I want to take a screenshot of, I do not want to have the background or the axes (I, R, S) or purple lines when I save the image. The current state looks as follows:

I have run the ‘Capture 3D view into PNG file with transparent background’ script by saving it in a Python file and then running exec(open('./Users/me/Downloads/save.py').read()) in the Python console in Slicer (see screenshot).

However, the screenshot which is output does not have the current 3D view, and does not have a 3D background or hidden axes:

What can I do about this?

5 posts - 3 participants