OpenSesame EyeTracker plug-ins
The EyeTracker plug-ins are designed to add eye-tracking functionality to OpenSesame. With these plug-ins, creating an eye-tracking experiment is a matter of dragging and dropping. Currently, we support EyeLink (SR Research) and iViewX (SensoMotoric Instruments) systems, but more brands will be added in the future (and may already be used with a bit of custom code created by you).
The Gaze Contingency plug-ins work together with the EyeTracker plug-ins, to provide easy implementation of gaze contingent functionality. The plug-ins contain forced retinal location (FRL) and area of interest (AOI) elements. Apart from this, the EyeTracker plug-ins may be used to implement your own gaze contingent paradigm (see the example below).
The plug-ins described on this page were presented during the European Conference on Eye Movements (ECEM) 2013 in Lund, Sweden. To (re)view the poster, click here.
Click on the links below to directly download the newest release.
Place the following example in the Run phase of an
inline_script item. Make sure you place an
eyetracker_calibrate before the
exp.eyetracker will not exist yet! More examples can be found here.
# import relevant libraries
from openexp.canvas import canvas
from openexp.keyboard import keyboard
# create canvas object
my_canvas = canvas(exp)
# create keyboard object
my_keyboard = keyboard(exp, keylist=None, timeout=1)
# loop until keypress
response = None
t0 = self.time()
while response == None:
# obtain current gaze position
x, y = exp.eyetracker.sample()
# update canvas accordingly
# check for responses
response, press_time = my_keyboard.get_key()
# save some values
exp.set("response_time", press_time - t0)
A lot of the code for the plug-ins mentioned above is adapted from PyGaze, an open-source toolbox for eye-tracking. If you're interested in programming your own experiments in Python, check out the website!