Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Target-areas in space with GazePoint

Hi everybody!

First of all, I'm not expert of Python, neither OpenSesame or eyetracking.
I'm running an experiment in which participants have to fix three possible crosses (left, center, right) put on a panel in front of them, while performing a grasping action. I won't go into details of the experiment, but you can understand how important is recording participant's gaze direction. Thus, we're using a GazePoint eyetracker!

Now, I made a first version of my OpenSesame script just using the items of PyGaze (pygaze_init, pygaze_start_recording and so on), and I saw that the output file is very long and confusing.

I'd like to know whether there is a way to set my three target areas in the space (not in the screen, since participants will sit in front of a panel with three fixation crosses), and then tell OpenSesame not to continue the trial if the gaze direction doesn't coincide with the target area in the space. In this way I could be confident that my participants are really looking at the correct cross.

Thank you in advance

Martina

Comments

  • Hi Martina,

    Yes, this is possible. You would need to use an inline script in which you use the eyetracker.sample() function to obtain the current gaze position within a while loop. You could compare the (x,y) coordinate this returns to the coordinates of your stimuli. If the gaze is close to the location of your stimuli, you could then break the while loop, to continue the experiment.

    Make sure to also include a time-out after which the while loop breaks, to prevent an unending loop!

    Cheers,
    Edwin

Sign In or Register to comment.