Eye-tracking sentence reading: issues coordinating stimuli with ROIs
in OpenSesame
Hi there,
I am designing an experiment with Opensesame but my programming skills are very limited.
I would like to show the sentences, and at the same time define ROIs around each word.
I found useful code from another discussion: https://forum.cogsci.nl/discussion/4540/eye-tracking-sentence-reading-definition-of-areas-of-interest.
My problem is that I dont know how to adjust the rectangles to the size of the individual words, either the rectangle is too small or too big.
Here is a copy of the latest version I have of the project.
Thank you in advance for the help!
Ana
Comments
Hi @Ana_C ,
This script indeed doesn't work properly anymore because the way that text is rendered has changed since this post (it changed from 3.2 to 3.3). To work around this, you need to draw one word at a time, rather than the entire string at once. I adjusted the original script (from the discussion you linked to) to do this, see below. You can adjust in turn so it fits into your own script.
I am designing an experiment with Opensesame but my programming skills are very limited.
Even when the presentation script is fixed, this will be a tricky dataset to analyze if you are not a proficient programmer. Therefore, before you start, carefully think all stres through, including how you are going to analyze this data once you've collected it!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!