[PsychoPy-users] get and save movie frame.
Psychology/psychophysics/neuroscience software written in Python
Status: Beta
Brought to you by:
peircej
|
From: John P. M. <jp...@uw...> - 2008-04-14 19:05:28
|
I'm working to create .tif (or other) files that I can use in my own
stimulus presentation software. Kids (5-6 YO) will be running this
experiment, so i need to use my existing software to present the
stimuli in way I know will work, they will like, etc.
So I'd like to draw a grating and save it.
I've tried this:
# import things
from psychopy import visual, core
#define window
StimWin = visual.Window([200,200],monitor="testMonitor", units="deg")
#create a stimulus
Stim = visual.AlphaStim(win=SimWin, mask="gauss", size=4, pos=[0,0],
sf=3.2)
#draw and update the window
Stim.draw()
StimWin.update()
#get and save
StimWin.getMovieFrame()
StimWin.saveMovieFrames('Stim1.tif')
and the file is blank. There must be something I am missing, but I
can't see it. This is my first day with Python.
Thanks
John Paul
--
John Paul Minda, Ph.D.
Assistant Professor
Department of Psychology
The University of Western Ontario
London, Ontario N6A 5C2
(519) 661-2111 (84689)
email jp...@uw...
web http://www.mindalab.com/
|