Millisecond Forums

How to integrate pictures into a script?

https://forums.millisecond.com/Topic12471.aspx

By CecileP - 2/25/2014

Dears,

I would like to integrate pictures into my script as primes, instead of words.
In the script I mentioned "picture1.jpg" in place of the text but then, where do I have to place my picture file, so that Inquisit will take it when the experiment runs?
For the moment only the text "picture.jpg" appears on the screen but not hte picture itself.
Is there any thing else I need to change in the script?


Thanks
Cécile

By Dave - 2/25/2014

#1: You need to *change* the <text> elements representing your primes to <picture> elements, of course.

<block myblock>
/ trials = [1=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=prime]
/ validresponse = (57)
</trial>

<text prime>
/ items = primeitems
</text>


<item primeitems>
/ 1 = "prime.jpg"
</item>

ought to become

<block myblock>
/ trials = [1=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=prime]
/ validresponse = (57)
</trial>

<picture prime>
/ items = primeitems
</picture>


<item primeitems>
/ 1 = "prime.jpg"
</item>

#2: By default, Inquisit expects any external files to be located in the same folder as the script.
By CecileP - 2/26/2014

Many thanks!!!