generating interest areas for text
Hi,
we are designing an experiment where we want to present a textual stimulus. For the offline data analysis, we want to create interest areas such that we get the screen location (in pixels) of each character on the monitor. Is there a way to automatically generate such interest areas? If not, how can we get the exact location in pixels of the text onset (the upper most, left most character) of the text?
Thanks!
Syna
Comments
Hi Syna,
Opensesame has a function to measure the width and height of a text item. See here: https://osdoc.cogsci.nl/3.2/manual/python/canvas/#function-canvas46text95size40text-centertrue-max95widthnone-4242style95args41
So, if you measure your text size, and you know the center (or topleft) of your text item, you can draw a box around it based on its size.
Does that help?
Eduard