Re-display photo later in experiment


Author
Message
bmatt
bmatt
Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)Partner Member (889 reputation)
Group: Forum Members
Posts: 7, Visits: 57
I have a study in which I present five images to participants in random order but in five specified locations on the screen (top left, top right, center, bot left, bot right). Participants choose one image, and I would like that image to appear later in the study.  However, I keep running into "file not found" errors.  I did this same kind of programming earlier in the script for text values and it worked just fine.  Here is the relevant script (decontextualized for greater clarity and shortened by removing redundant code).

<counter photocounter>
/ select = noreplace(1-5)
/ selectionrate = always
</counter>

<item photos>
/ 1 = "Photo1.jpg"
/ 2 = "Photo2.jpg"
...
</item>

<picture photo1>
/ items = photos
/ select = photocounter
/ position = (27, 33)
/ size = (250, 250)
</picture>

**same for photo2 through photo5

<item selectedphoto>
</item>

<trial chooseaphoto>
/ stimulusframes = [1 = photo1, photo2, ...]
/ inputdevice = mouse
/ showmousecursor = true
/ validresponse = (photo1, photo2, ...)
/ ontrialend = [if(trial.chooseaphoto.response == "photo1") (item.selectedphoto = picture.photo1.currentitem)]
/ ontrialend = [if(trial.chooseaphoto.response == "photo2") (item.selectedphoto = picture.photo2.currentitem)]
.....
</trial>

<picture redisplayphoto>
/ items = ("<%item.selectedphoto.item.1%>")
/ position = (80, 13)
/ size = (250, 250)
</picture>

<trial showphotoagain>
/ stimulusframes = [1 = redisplayphoto]
/ validresponse = (" ")
</trial>




GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search