﻿<?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 6  » Use rotation attribute to determine correct response</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 01:46:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35718.aspx</link><description>I have a script I am working on in which observers decide if a face is rotated clockwise or counterclockwise.&lt;br/&gt;When I use the code (iscorrectresponse) below to determine the correct response on each trial it does not seem to work.&lt;br/&gt;Can you tell me what I am doing wrong here.&lt;br/&gt;&lt;br/&gt;&amp;lt;list rotate&amp;gt;&lt;br/&gt;/items=(15,-15)&lt;br/&gt;/poolsize =30&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item neutralmale&amp;gt;&lt;br/&gt;/1="WM01/WM01_NO.jpg"&lt;br/&gt;/2="WM02/WM02_NO.jpg"&lt;br/&gt;/3="WM03/WM03_NO.jpg"&lt;br/&gt;/4="WM04/WM04_NO.jpg"&lt;br/&gt;/5="WM05/WM05_NO.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture maletarget&amp;gt;&lt;br/&gt;/ items = neutralmale&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/size = (150,150)&lt;br/&gt;/rotation = list.rotate.nextvalue&lt;br/&gt;/ position =  ((list.poslistx.nextvalue), (list.poslisty.currentvalue))&lt;br/&gt;/ transparentcolor = (white)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial search&amp;gt;&lt;br/&gt;/ beginresponseframe = 30&lt;br/&gt;&lt;br/&gt;/ontrialbegin =[picture.maletarget.resetselection();list.poslistx.reset();list.poslisty.reset()]&lt;br/&gt;/ posttrialpause = 200&lt;br/&gt;/stimulusframes =[&lt;br/&gt;1 =blank,fix;30=blank,maletarget]&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ validresponse = ("z" "n")&lt;br/&gt;/ iscorrectresponse = [(picture.maletarget.rotation == 15 &amp;amp;&amp;amp; trial.search.response == 49)||(picture.maletarget.rotation == -15 &amp;amp;&amp;amp; trial.search.response == 44)]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 31 Oct 2023 14:50:32 GMT</pubDate><dc:creator>kev_dent</dc:creator></item><item><title>RE: Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35726.aspx</link><description>Thanks, list of lists worked.&lt;br/&gt;I guess resetting the items within a single list on each trial would also work, but more is more cumbersome.&lt;br/&gt;</description><pubDate>Tue, 31 Oct 2023 14:50:32 GMT</pubDate><dc:creator>kev_dent</dc:creator></item><item><title>RE: Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35725.aspx</link><description>&lt;blockquote data-id="35722" class="if-quote-wrapper" unselectable="on" data-guid="1698762369243" contenteditable="false" id="if_insertedNode_1698762368128"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35722" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35722" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35722" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;kev_dent - 10/31/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35722"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Thanks, I can implement it like that.&lt;br/&gt;If I wished to have two rotation lists, and flip between these two lists over trials but select from one list within each trial what would be the best way to do that?&lt;a class="if-quote-goto quote-link" href="#" data-id="35722"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Make a list of lists, use a variable to switch between them.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://forums.millisecond.com/Topic26477.aspx"&gt;https://forums.millisecond.com/Topic26477.aspx&lt;/a&gt;</description><pubDate>Tue, 31 Oct 2023 14:32:02 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35722.aspx</link><description>Thanks, I can implement it like that.&lt;br/&gt;If I wished to have two rotation lists, and flip between these two lists over trials but select from one list within each trial what would be the best way to do that?</description><pubDate>Tue, 31 Oct 2023 14:15:37 GMT</pubDate><dc:creator>kev_dent</dc:creator></item><item><title>RE: Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35721.aspx</link><description>&lt;blockquote data-id="35720" class="if-quote-wrapper" unselectable="on" data-guid="1698760792209" contenteditable="false" id="if_insertedNode_1698760791424"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35720" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35720" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35720" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;kev_dent - 10/31/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35720"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi actually the example I sent was simplified. In the full code multiple faces are presented on each trial with each face rotated according to a query of the rotation list. If selection rate were to be set to trial all faces would have the same rotation which is not what I'm aiming for.&lt;br/&gt;&lt;br/&gt;/ stimulusframes =[1 =blank,fix;30=blank,nef1,nef2,maletarget]&lt;a class="if-quote-goto quote-link" href="#" data-id="35720"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Then you ought to use variables, or at least one variable for the target, instead of referencing the list directly (which, as I explained, will lead to a new rotation value being sampled whenever the target's rotation is queried).&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ targetrotation = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture maletarget&amp;gt;&lt;br/&gt;..&lt;br/&gt;/rotation = values.targetrotation&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial search&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.targetrotation = list.rotate.nextvalue;&lt;br/&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 31 Oct 2023 14:03:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35720.aspx</link><description>Hi actually the example I sent was simplified. In the full code multiple faces are presented on each trial with each face rotated according to a query of the rotation list. If selection rate were to be set to trial all faces would have the same rotation which is not what I'm aiming for.&lt;br/&gt;&lt;br/&gt;/ stimulusframes =[1 =blank,fix;30=blank,nef1,nef2,maletarget]</description><pubDate>Tue, 31 Oct 2023 13:57:00 GMT</pubDate><dc:creator>kev_dent</dc:creator></item><item><title>RE: Use rotation attribute to determine correct response</title><link>https://forums.millisecond.com/Topic35719.aspx</link><description>&lt;blockquote data-id="35718" class="if-quote-wrapper" unselectable="on" data-guid="1698759823977" contenteditable="false" id="if_insertedNode_1698759822588"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35718" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35718" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35718" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;kev_dent - 10/31/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35718"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I have a script I am working on in which observers decide if a face is rotated clockwise or counterclockwise.&lt;br/&gt;When I use the code (iscorrectresponse) below to determine the correct response on each trial it does not seem to work.&lt;br/&gt;Can you tell me what I am doing wrong here.&lt;br/&gt;&lt;br/&gt;&amp;lt;list rotate&amp;gt;&lt;br/&gt;/items=(15,-15)&lt;br/&gt;/poolsize =30&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item neutralmale&amp;gt;&lt;br/&gt;/1="WM01/WM01_NO.jpg"&lt;br/&gt;/2="WM02/WM02_NO.jpg"&lt;br/&gt;/3="WM03/WM03_NO.jpg"&lt;br/&gt;/4="WM04/WM04_NO.jpg"&lt;br/&gt;/5="WM05/WM05_NO.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture maletarget&amp;gt;&lt;br/&gt;/ items = neutralmale&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/size = (150,150)&lt;br/&gt;/rotation = list.rotate.nextvalue&lt;br/&gt;/ position =  ((list.poslistx.nextvalue), (list.poslisty.currentvalue))&lt;br/&gt;/ transparentcolor = (white)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial search&amp;gt;&lt;br/&gt;/ beginresponseframe = 30&lt;br/&gt;&lt;br/&gt;/ontrialbegin =[picture.maletarget.resetselection();list.poslistx.reset();list.poslisty.reset()]&lt;br/&gt;/ posttrialpause = 200&lt;br/&gt;/stimulusframes =[&lt;br/&gt;1 =blank,fix;30=blank,maletarget]&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ validresponse = ("z" "n")&lt;br/&gt;/ iscorrectresponse = [(picture.maletarget.rotation == 15 &amp;amp;&amp;amp; trial.search.response == 49)||(picture.maletarget.rotation == -15 &amp;amp;&amp;amp; trial.search.response == 44)]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35718"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Because your list is set to selectionrate always, every time you query the rotation property, a new value will be selected. This is obviously counterproductive and will lead to wrong results. The list ought to be set to selectionrate trial for this to make sense and work.</description><pubDate>Tue, 31 Oct 2023 13:47:30 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>