psychopy.org | Reference | Downloads | Github

Write GratingStim Gabor patch to png

Hello,

I was wondering if there is a build in function that exports psychopy objects to .png

For example I am creating a Gabor patch with GratingStim, which is displayed on a window.

How can i save that as png or jpeg etc?

Hi @eric, visual.Window has a function to save save frames - see here

You could add a code component and use the following in the “Each Frame” tab, assuming win is the name of your visual.Window object

win.getMovieFrame()
win.saveMovieFrames('frame.png')