[open] Limit number of fixations for Open Sesame Eye link Exp
Hello!
For my face recognition experiment, I need to limit the number of fixations my participants are allowed to have while looking at a face. Is there a way to do so in Open Sesame? I have it connected to EyeLink already.

Comments
Hi Olya,
This will require a bit of inline scripting, but not much. Basically, you can make use of the
wait_for_fixation_start()function like so:See also:
Alternatively, if you don't like scripting, you could use the
eyelink_waitplug-in, set the event to 'Fixation start', and put it in aloopto repeat it a few times. Theinline_scriptway is a bit more straightforward, though.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you Sebastian! So do I just type in the code above into the inline script Run window? The inline script is located above the sketchpad with all my face photos. Is that it?
Hi Olya,
Yes, you can copy-paste the code into the run window of an
inline_script. I suspect that you will have to place it below the sketchpad with the photo's though, because you want the fixation checks to occur after the photo's have appeared, right?I would also recommend walking through some basic Python tutorials. Some knowledge of Python will be very convenient if you want to do online checks, gaze-contingency, etc, with the Eyelink. See:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastian,
I have switched to pygaze plug-ins, so the code above doesn't work anymore. Could you please post the pygaze equivalent of it?
Thank you very much.
Hi Olya,
Replace
exp.eyelinkwithexp.pygaze_eyetracker, and everything should work the same.Good luck!