Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Re-display photo later in experiment
Re-display photo later in experiment
Post Reply
Like
31
Re-display photo later in experiment
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
bmatt
bmatt
posted 11 Years Ago
ANSWER
Topic Details
Share Topic
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>
Reply
Like
31
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 109K
<picture redisplayphoto>
/ items = ("<%item.selectedphoto.item.1%>")
/ position = (80, 13)
/ size = (250, 250)
</picture>
needs to read
<picture redisplayphoto>
/ items = selectedphoto
/ position = (80, 13)
/ size = (250, 250)
</picture>
Edited
11 Years Ago by
Dave
Reply
Like
24
bmatt
bmatt
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 7,
Visits: 57
Works like a charm now. I was worried it was a simple fix (which it was). Thanks for your help!
Reply
Like
23
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 109K
I like simple fixes, so that's perfect for me! No worries :)
Reply
Like
23
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
31
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search