Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Random division of a set of pictures

Hi everybody !

I'm new to open-sesame and I face some troubles mounting my experimental design.

My experiment includes 2 blocks. I have a set of 80 pictures. I want to present 40 randomly selected pictures in each of these 2 blocks (so far no problems). The thing is that I want the pictures used in one block not used in the other, so that the whole set of 80 pictures is showed, randomly divided between my 2 blocks.

So here's my design :

And here's the script of my sketchpad

set start_response_interval no
set duration keypress
set description "Displays stimuli"
draw fixdot color=white show_if=always style=default x=0 y=0 z_index=0
draw image center=1 file="[image].jpg" scale=1 show_if=always x=0 y=0 z_index=0

Do you have any idea? thank you in advance
Cheers

Comments

  • Hi Bobby,

    I would try to implement this with inline_script. The syntax is quite straightforward. Attached an example script (unzip first before running it). First you create an image list (before entering your two loops). Then for each loop you sample one image from the list(without replacement) and present that image in sketchpad.

    Good luck,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.