Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

save stimuli generated on the fly

Hello OpenSesame people. Is it possible to save a jpg or png of stimuli generated on the fly? For instance, with the visual search tutorial example, can I add some code that will save each canvas that was prepared by the scripts? I thought there might have been a method such as Canvas.save(), or some equivalent, but could not find one.
Thanks for any ideas!

Comments

  • edited July 16

    Hi,

    With these two lines, I am taking a screenshot of some of my canvasses.

        self.experiment.window.getMovieFrame ( )
        self.experiment.window.movieFrames[0].save(filepath)
    

    Put them in an inline-script after you prepared your trial canvas and you should get what you need.

    Eduard

    Thanked by 1jtm
  • Works a treat. Thank you very much!

Sign In or Register to comment.