﻿<?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  » Gif animation as a fixation point problem</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 20 Aug 2026 10:01:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14545.aspx</link><description>Dear All,&lt;br/&gt;&lt;br/&gt;I have problem with gif animation set as fixation point.&lt;br/&gt;&lt;br/&gt;If i set as fixation point (fp) text stimuli (text_fp) my script works fine, during whole block, &lt;br/&gt;fp is visible but disapeers in recall (target) phase on trial.target1 nad trial.target2. &lt;br/&gt;After trial.target2 in trial.reset I set stimulustime [0=text_fp]&amp;nbsp; without erase so I have text_fp visible till next&amp;nbsp; trial.target1.&lt;br/&gt;&lt;br/&gt;BUT if i set as&amp;nbsp; fixation point gif animation - &lt;br/&gt;video_fp&amp;nbsp; then something is going wrong. In trial target1 and target2 bgsim is still visible.&lt;br/&gt;&lt;br/&gt; I have created a white rectangle mask to overwrite bgstim but it does not work.&lt;br/&gt;&lt;br/&gt;I change mask color to black and I saw that video stimuli is alwas on first plan and cant be overwrite.&lt;br/&gt;&amp;nbsp;&lt;br/&gt;I can`t figure out why.&lt;br/&gt;&lt;br/&gt;I looked through documentation but find nothing ;/&lt;br/&gt;&lt;br/&gt;Mayby someone can help?&lt;br/&gt;&lt;br/&gt;Thanks a lot for help&lt;br/&gt;&lt;br/&gt;I attach my script and animation&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 07 Oct 2014 02:39:05 GMT</pubDate><dc:creator>kulajw</dc:creator></item><item><title>RE: Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14552.aspx</link><description>&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Yes!&lt;div id="gt-src-tools"&gt;&lt;div id="gt-src-tools-l"&gt;&lt;div style="display: inline-block;" id="gt-input-tool"&gt;&lt;div id="itamenu"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;   &lt;div id="gt-res-content" class="almost_half_cell"&gt;&lt;div dir="ltr" style="zoom:1"&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Your&lt;/span&gt; &lt;span class="hps"&gt;suggestion&lt;/span&gt; &lt;span class="hps"&gt;is a great&lt;/span&gt; &lt;span class="hps"&gt;idea.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br/&gt;Works perfect&lt;br/&gt;Thank You ;)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 07 Oct 2014 02:39:05 GMT</pubDate><dc:creator>kulajw</dc:creator></item><item><title>RE: Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14551.aspx</link><description>I see. Consider doing something along the lines of:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/trial_no=0&lt;br/&gt;/trial_max=6&lt;br/&gt;/trial_set=0&lt;br/&gt;/target1_in_sequence=1&lt;br/&gt;/target2_in_sequence=3&lt;br/&gt;/target1_position=0&lt;br/&gt;/target2_position=0&lt;br/&gt;/transorm_count =0&lt;br/&gt;/timeout=100&lt;br/&gt;/range=0&lt;br/&gt;/position=0&lt;br/&gt;/hposition=50&lt;br/&gt;/vposition=50&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/a=0&lt;br/&gt;/b=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;video video_fp&amp;gt;&lt;br/&gt;/items=("fp200.gif")&lt;br/&gt;/size = (100,100)&lt;br/&gt;/erase = false&lt;br/&gt;/loop=true&lt;br/&gt;/hposition = values.hposition&lt;br/&gt;/vposition= values.vposition&lt;br/&gt;&amp;lt;/video&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text text_fp&amp;gt;&lt;br/&gt;/items=("+")&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item stimulus&amp;gt;&lt;br/&gt;/1 = "A"&lt;br/&gt;/2 = "B"&lt;br/&gt;/3 = "C"&lt;br/&gt;/4 = "D"&lt;br/&gt;/5 = "E"&lt;br/&gt;/6 = "F"&lt;br/&gt;/7 = "G"&lt;br/&gt;/8 = "H"&lt;br/&gt;/9 = "W"&lt;br/&gt;/10 = "J"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item set&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list pos&amp;gt;&lt;br/&gt;/items = (1,2,3)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulus&amp;gt;&lt;br/&gt;/items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)&lt;br/&gt;/replace = false &lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S1L&amp;gt;&lt;br/&gt;/items = stimulus&lt;br/&gt;/position = (90,50)&lt;br/&gt;/fontstyle = ("Arial", 10%)&lt;br/&gt;/select = list.stimulus.nextvalue&lt;br/&gt;/size = (100,100)&lt;br/&gt;/erase = true(255,255,255)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S2L&amp;gt;&lt;br/&gt;/items = stimulus&lt;br/&gt;/position = (75,80)&lt;br/&gt;/fontstyle = ("Arial", 10%)&lt;br/&gt;/select = list.stimulus.nextvalue&lt;br/&gt;/ size = (100,100)&lt;br/&gt;/erase = true(255,255,255)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text S3L&amp;gt;&lt;br/&gt;/items = stimulus&lt;br/&gt;/position = (75,20)&lt;br/&gt;/fontstyle = ("Arial", 10%)&lt;br/&gt;/select = list.stimulus.nextvalue&lt;br/&gt;/ size = (100,100)&lt;br/&gt;/erase = true(255,255,255)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text target1&amp;gt;&lt;br/&gt;/ items = set&lt;br/&gt;/ txcolor = (0,0,139)&lt;br/&gt;/ fontstyle = ("Arial", 10%)&lt;br/&gt;/select = values.target1_in_sequence&lt;br/&gt;/size = (400,400)&lt;br/&gt;/position = (50,50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text target2&amp;gt;&lt;br/&gt;/ items = set&lt;br/&gt;/ txcolor = (0,0,139)&lt;br/&gt;/ fontstyle = ("Arial", 10%)&lt;br/&gt;/ select = values.target2_in_sequence&lt;br/&gt;/ size = (400,400)&lt;br/&gt;/position = (50,50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text tak&amp;gt;&lt;br/&gt;/items = ("tak&amp;nbsp; -&amp;gt; ")&lt;br/&gt;/fontstyle = ("Calibri", 5%)&lt;br/&gt;/position = (75,80)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nie&amp;gt;&lt;br/&gt;/items = (" &amp;lt;-&amp;nbsp; nie")&lt;br/&gt;/fontstyle = ("Calibri", 5%)&lt;br/&gt;/position = (25,80)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial A&amp;gt;&lt;br/&gt;/ontrialbegin=[values.trial_no+=1]&lt;br/&gt;/ontrialbegin = [ &lt;br/&gt;if (list.pos.nextvalue==1) trial.A.setstimulustime(text.S1L,0);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;if (list.pos.nextvalue==2) trial.A.setstimulustime(text.S2L,0);&lt;br/&gt;if (list.pos.nextvalue==3) trial.A.setstimulustime(text.S3L,0);]&lt;br/&gt;&lt;br/&gt;/timeout = values.timeout&lt;br/&gt;/ontrialend = [&lt;br/&gt;if(trial.A.stimulustime(0)=="text.S1L") item.set.item = text.S1L.currentitem;&lt;br/&gt;if(trial.A.stimulustime(0)=="text.S2L") item.set.item = text.S2L.currentitem; &lt;br/&gt;if(trial.A.stimulustime(0)=="text.S3L") item.set.item = text.S3L.currentitem;&lt;br/&gt;values.position=trial.A.stimulustime(0);&lt;br/&gt;trial.a.clearstimulusframes(0)]&lt;br/&gt;&lt;br/&gt;/branch = [if (values.trial_no&amp;lt;values.trial_max) trial.A]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target1&amp;gt;&lt;br/&gt;/stimulustimes= [0=target1,nie,tak]&lt;br/&gt;/correctresponse = (203)&lt;br/&gt;/validresponse = (203,205)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target2&amp;gt;&lt;br/&gt;/ontrialbegin = [values.a=0;&lt;br/&gt;&amp;nbsp;values.b=0]&lt;br/&gt;/stimulustimes= [0=target2,nie,tak]&lt;br/&gt;/correctresponse = (205)&lt;br/&gt;/validresponse = (203,205)&lt;br/&gt;/branch = [trial.reset]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial reset&amp;gt;&lt;br/&gt;/ ontrialbegin = [item.set.clearitems(); list.stimulus.reset();list.pos.reset(); values.trial_no=0;]&lt;br/&gt;/ recorddata = false&lt;br/&gt;/ timeout = 200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block A&amp;gt;&lt;br/&gt;/trials= [1=A]&lt;br/&gt;/bgstim = (video_fp)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Atarget&amp;gt;&lt;br/&gt;/trials= [1=sequence(target1,target2)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-10=sequence(a,atarget)]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 06 Oct 2014 13:12:19 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14550.aspx</link><description>&lt;br/&gt;Thanks&lt;br/&gt;I try, but unfortunetly it does not work.&lt;br/&gt;&lt;br/&gt;Option 1 I still have the same situation, I create white blank gif animation to erase fixation point, but fixation point is still on first plan,&lt;br/&gt;then I create black gif&amp;nbsp; animation and black animation is unable to erase fixation point. It looks like video bgstim will be always before mask.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;div style="position: absolute; top: -1999px; left: -1988px;" id="stcpDiv"&gt;Opoverwrite the fixation animation using *another* blank gif-animation or (2) display the fixation animation via a &amp;lt;trial&amp;gt;'s /stimulustimes or -frames instead of /bgstim (which will stop the animation when the trial terminates). - See more at: &lt;a href="http://www.millisecond.com/forums/Post.aspx?TopicID=14545&amp;amp;PageIndex=1&amp;amp;Task=PostTopicReply&amp;amp;ParentID=14545#sthash.GK6avNmF.dpuf"&gt;http://www.millisecond.com/forums/Post.aspx?TopicID=14545&amp;amp;PageIndex=1&amp;amp;Task=PostTopicReply&amp;amp;ParentID=14545#sthash.GK6avNmF.dpuf&lt;/a&gt;&lt;/div&gt;Option 2 in my sript trials are replaced very fast, one letter- one trial, and if i try set fixation poin as a stimuliframe/stimulitiem i have no smooth movement of gif animation. I have very short blinks.&amp;nbsp; Mayby I need to rewrite my script&amp;nbsp; to use animation as fixation point ;/&lt;br/&gt;&lt;br/&gt;Thank you anyway.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;div style="position: absolute; top: -1999px; left: -1988px;" id="stcpDiv"&gt;overwrite the fixation animation using *another* blank gif-animation or (2) display the fixation animation via a &amp;lt;trial&amp;gt;'s /stimulustimes or -frames instead of /bgstim (which will stop the animation when the trial terminates). - See more at: &lt;a href="http://www.millisecond.com/forums/Post.aspx?TopicID=14545&amp;amp;PageIndex=1&amp;amp;Task=PostTopicReply&amp;amp;ParentID=14545#sthash.GK6avNmF.dpuf"&gt;http://www.millisecond.com/forums/Post.aspx?TopicID=14545&amp;amp;PageIndex=1&amp;amp;Task=PostTopicReply&amp;amp;ParentID=14545#sthash.GK6avNmF.dpuf&lt;/a&gt;&lt;/div&gt;&lt;br/&gt;&lt;div style="position: absolute; top: -1999px; left: -1988px;" id="stcpDiv"&gt;overwrite the fixation animation using *another* blank gif-animation or (2) display the fixation animation via a &amp;lt;trial&amp;gt;'s /stimulustimes or -frames instead of /bgstim (which will stop the animation when the trial terminates). - See more at: &lt;a href="http://www.millisecond.com/forums/Post.aspx?TopicID=14545&amp;amp;PageIndex=1&amp;amp;Task=PostTopicReply&amp;amp;ParentID=14545#sthash.GK6avNmF.dpuf"&gt;http://www.millisecond.com/forums/Post.aspx?TopicID=14545&amp;amp;PageIndex=1&amp;amp;Task=PostTopicReply&amp;amp;ParentID=14545#sthash.GK6avNmF.dpuf&lt;/a&gt;&lt;/div&gt;&lt;div style="position: absolute; top: -1999px; left: -1988px;" id="stcpDiv"&gt;(1) overwrite the fixation animation using *another* blank gif-animation - See more at: &lt;a href="http://www.millisecond.com/forums/Topic14545.aspx#sthash.uv8hdy7P.dpuf"&gt;http://www.millisecond.com/forums/Topic14545.aspx#sthash.uv8hdy7P.dpuf&lt;/a&gt;&lt;/div&gt;</description><pubDate>Mon, 06 Oct 2014 12:18:52 GMT</pubDate><dc:creator>kulajw</dc:creator></item><item><title>RE: Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14549.aspx</link><description>I've listed two options in my previous reply (these were added for clarity).&lt;br/&gt;</description><pubDate>Mon, 06 Oct 2014 10:31:46 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14548.aspx</link><description>Thanks a lot, you're right !&lt;br/&gt;&amp;nbsp;refreshing - it is so simple.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;But what can I do to erase this gif fixation point in target.trial? &lt;br/&gt;&lt;br/&gt;Is there any way? Do you have any idea?&lt;br/&gt;&lt;br/&gt;Thanks &lt;br/&gt;</description><pubDate>Mon, 06 Oct 2014 10:05:21 GMT</pubDate><dc:creator>kulajw</dc:creator></item><item><title>RE: Gif animation as a fixation point problem</title><link>https://forums.millisecond.com/Topic14546.aspx</link><description>If you play back an animation (a video / a gif) as background stimulus, the screen portion displaying that animation has to be redrawn constantly (after all, an animation is nothing more than a rapid sequence of static images). Thus you cannot overwrite it with a simple static stimulus (such as a &amp;lt;shape&amp;gt;).&lt;br/&gt;&lt;br/&gt;Depending on how you want your script to behave, you can either (1) overwrite the fixation animation using *another* blank gif-animation or (2) display the fixation animation via a &amp;lt;trial&amp;gt;'s /stimulustimes or -frames instead of /bgstim (which will stop the animation when the trial terminates).&lt;br/&gt;</description><pubDate>Mon, 06 Oct 2014 09:27:17 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>