﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » eyetracker element</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 30 Apr 2026 18:26:26 GMT</lastBuildDate><ttl>20</ttl><item><title>eyetracker element</title><link>https://forums.millisecond.com/Topic14448.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;Where can I find the documentation for the "aoidurationthreshold" attribute for the eyetracker element ? I see it used in the preferential looking example script, but can't seem to find the documentation/syntax for the attribute. I'm trying to use the preferential looking script but I want to record the total looking time to each image on each trial rather than having it time out after a threshold is reached. Any help is appreciated!&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;SD&lt;br/&gt;</description><pubDate>Thu, 10 Feb 2022 04:26:27 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic33918.aspx</link><description>Hi there,&amp;nbsp;&lt;br/&gt;I am currently working to set up a script for an eyetracking experiment where I want to be able to record the time that the participant spends looking at different stimuli (as seems to be detailed above). I'm wondering if there have been any updates that allow this to be possible? &lt;br/&gt;Thanks!&lt;br/&gt;Liz</description><pubDate>Thu, 10 Feb 2022 04:26:27 GMT</pubDate><dc:creator>esummerell</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14486.aspx</link><description>Alas, no.&amp;nbsp;Sounds like this would have to computed after the fact with the gaze point data as Dave suggested.&lt;br/&gt;&lt;br/&gt;I've added this scenario to our list of features for a future release. It's obviously of general interest for preferential looking studies.&lt;br/&gt;&lt;br/&gt;-Sean</description><pubDate>Wed, 01 Oct 2014 21:43:03 GMT</pubDate><dc:creator>seandr</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14483.aspx</link><description>Thanks for the response!&lt;br/&gt;&lt;br/&gt;Because we are working with toddlers, they often look off screen. Would there be a way to call /isvalidresponse every millisecond or frame to evaluate the location of gaze instead of only evaluating when there is a change? &lt;br/&gt;</description><pubDate>Wed, 01 Oct 2014 11:09:08 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14474.aspx</link><description>This might be possible. On each trial, present a transparent &amp;lt;shape&amp;gt; stimulus that is sized to 100% of the screen width and height along with the target and distractor and include the shape stimulus in the validresponse list:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[code]&lt;br/&gt;&amp;lt;shape screen&amp;gt;&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ color = transparent&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial test&amp;gt;&lt;br/&gt;/ inputdevice = eyetracker&lt;br/&gt;/ stimulusframes = [1=target, distractor, screen]&lt;br/&gt;/ validresponse = (screen, one, two)&lt;br/&gt;/ isvalidresponse = []&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;[/code]&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;With each change in gaze point, /isvalidresponse is called. Within &lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.6000003814697px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;isvalidresponse&lt;/span&gt;, you can check the trial.test.response property to determine whether the infant is looking at either stimulus or the screen. The code here could then note when this changes and tally up the total time for either stimulus. For example, if gaze transitions from screen to the distractor, you'd store the onset time of the transition in a value, e.g. value.distractoronset = script.elapsedtime. If gaze transitions back to the screen or to the target, you'd tally the total time, e.g., value.distractorgazetime += (script.elapsedtime - value.distractoronset). Your code would need to handle the various possible transitions and make sure values are initialized properly, but it shouldn't be too complicated. Also, /isvalidresponse should always return false or the trial will end.&lt;br/&gt;&lt;br/&gt;One potential issue - if &amp;nbsp;gazepoint transitions from the target directly off screen, that transition would be missed. Not sure how likely that is.&lt;br/&gt;&lt;br/&gt;-Sean&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 30 Sep 2014 13:18:53 GMT</pubDate><dc:creator>seandr</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14462.aspx</link><description>&amp;gt; The /aoidurationthreshold attribute must be tracking gaze to each picture to evaluate whether a given threshold is reached, the &lt;br/&gt;&amp;gt; question is whether I can record this. &lt;br/&gt;&lt;br/&gt;Nope, not as far as I am aware at least. Calculating cumulative viewing time from the raw gaze data would be the way to go then.&lt;br/&gt;</description><pubDate>Mon, 29 Sep 2014 16:17:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14461.aspx</link><description>I thought of the same thing, except that this assumes that the participant will look at the screen for the entire trial length. Because we are working with children, they often look off screen. So, for example, you might have someone look at the screen for 2000 out of the total trial duration of 2500 ms. In this case, they could have looked at the target for 1100ms, and the distractor for 900 ms, and we would want to credit them for looking at the target longer than the distractor. There is a minimum looking time, of course, since we would want gaze durations &amp;lt;500 ms to be counted. &lt;br/&gt;&lt;br/&gt;The /aoidurationthreshold attribute must be tracking gaze to each picture to evaluate whether a given threshold is reached, the question is whether I can record this. &lt;br/&gt;</description><pubDate>Mon, 29 Sep 2014 16:07:29 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14460.aspx</link><description>I am wondering though, if something along the lines of&lt;br/&gt;&lt;br/&gt;&amp;lt;eyetracker&amp;gt;&lt;br/&gt;/ aoidurationthreshold = 1251&lt;br/&gt;...&lt;br/&gt;&amp;lt;/eyetracker&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=target, distractor]&lt;br/&gt;/ validresponse = (target, distractor)&lt;br/&gt;/ correctresponse = (target)&lt;br/&gt;/ inputdevice = eyetracker&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;would work...&lt;br/&gt;</description><pubDate>Mon, 29 Sep 2014 15:33:05 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14458.aspx</link><description>I don't think that's possible. You would have to derive the the cumulative looking time for both target and distractor from the collected gaze data *after data collection is complete* and then score correctness based on that.&lt;br/&gt;</description><pubDate>Mon, 29 Sep 2014 15:14:39 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14455.aspx</link><description>Sorry for being unclear! &lt;br/&gt;&lt;br/&gt;For the preferential looking task, every trial will last 2500 ms. I want to record the looking time to each of the two images (a target image and a distractor image) presented during this time &amp;#119;indow. A correct response is awarded when the looking time to target &amp;gt; distractor. I thought that I might be able to use inquisit for this task since it does seem to capture looking time to areas of interest. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks!!</description><pubDate>Mon, 29 Sep 2014 15:06:27 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14454.aspx</link><description>Then -- unless I'm missing something -- you should simply be able to set /aoithresholdduration to a value equal or greater to /trialduration.&lt;br/&gt;</description><pubDate>Mon, 29 Sep 2014 14:42:36 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14452.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;The trial duration is set to 2500 milliseconds. A correct look is marked when the participant looks longer to the target image than the distractor image on a given trial. &lt;br/&gt;&lt;br/&gt;-SD</description><pubDate>Mon, 29 Sep 2014 14:35:40 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: eyetracker element</title><link>https://forums.millisecond.com/Topic14450.aspx</link><description>/ aoidurationthreshold determines the time a given participant must gaze within a specific area of interest before a hit is scored / that gaze is scored as a response.&lt;br/&gt;&lt;br/&gt;&amp;gt; I'm trying to use the preferential looking script but I want to record the total looking time to each image on each trial rather than &lt;br/&gt;&amp;gt; having it time out after a threshold is reached.&lt;br/&gt;&lt;br/&gt;The problem with this idea is: How is the given trial supposed to terminate, i.e., accept a gaze at an object as a response if there is no threshold of any kind specified?&lt;br/&gt;&lt;br/&gt;&amp;lt;trial puppypuppy&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.marker = (picture.puppyleft.currentindex * 100) + picture.puppyright.currentindex;]&lt;br/&gt;/ ontrialbegin = [port.marker.setitem(values.marker, 1);]&lt;br/&gt;/ stimulustimes= [1=puppyleft, puppyright, marker]&lt;br/&gt;&lt;strong&gt;/ inputdevice = eyetracker&lt;br/&gt;/ validresponse = (puppyleft, puppyright)&lt;/strong&gt;&lt;br/&gt;/ screencapture = true&lt;br/&gt;/ draw = pen&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 29 Sep 2014 14:20:08 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>