After I complete the calibration step from eyelink, my experimental settings such as height-based units and having the mouse visible completely go away, which ruin the positions of everything I had placed on the screen. How do I get these settings to come back? (It looks like now the screen maxes and mins are 400s/-400s so I’m not sure which unit it reverted to
Did you make the study in the builder?
I can guess why it’s happening. As I recall, the Eyelink calibration opens its own window and that supersedes the PsychoPy window. I suspect PsychoPy is then either re-creating the stimulus window and reverting it to default settings (800x800 and probably either norm or pixel units).
It might be possible to add a code element that closes this default window and then re-creates the window with your settings in the “begin routine” tab of the next trial after the calibration:
win.close()
win = visual.Window(size=(1920,1080), units='height')
Adjust as appropriate for your settings. There’s a chance that forcing the window to close and re-creating it like this might crash the experiment, but I think this should just work.
I did make this study in the builder and this solution worked, thank you! This was in dummy mode, and now I’m trying to connect to the eyetracker and calibrate it and it’s not connecting despite using their example code SR provides. I’d love to reach out if you have any example code for connecting to the eye tracker and calibration!
Helo @LilyCodes
Did you set up the display-pc to connect the eye-tracker pc via its network cable? You need to alter the default network settings.
Best wishes Jens