Integrating Psychopy generated stim in open sesame
I am trying to use psychopy within open sesame in order to present rotated letters. What I did for now is just importing psychopy and generating stim:
from psychopy import visual, core mywin = visual.Window([var.width,var.height]) text_presented = visual.TextStim(win=mywin, text=var.Letter, ori = 90) text_presented.draw() mywin.flip() core.wait(2.0)
The issue I am running is as follow:
- if I run the script in windowed mode then the stim appears in a different windows than the one of open sesame (the windows appear on top of the one of open sesame);
- if I run the script full screen then nothing appears on the screen.
This part of the script (rotated letter presentation) is part of a bigger procedure.
1) Would there be a way of integrating the stim generated by psychopy in open sesame windows;
2) I was thinking about another strategy. At the very beginning of my script I could write a loop generating all my rotated letter with Psychopy, then taking like a screen capture of it, and finally using these images for presenting them in open sesame. Would this be doable?