Howdy, Stranger!

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

Supported by

Random image into sketchpad

edited August 2023 in OpenSesame

Hello

I want to build an experiment, where on a certain sketchpad a random image from a stock images will be displayed each time, how do I do this?

i mean that the same sketchpad the first time present an image from images pool, the next time the same sketchpad will present other image, in the pool will be 5 or ten images, i didnt decide how money images will be in the pool exactly

Comments

  • Hi @amer6,

    It's hard to advise you from that description, but since your pool contains few images (5 to 10), my recommendation is to simply create 5 to 10 columns in your loop (e.g., image1, image2. etc.), write the name of the files (e.g., "picture1.jpg" etc.) in the these columns for each trial (i.e., on each row), add a picture object on your sketchpad, edit the sketchpad script to point to one of the variables (e.g., image1), and then in the loop's script, add shuffle_horiz image1 image10. This command randomly shuffles the contents of columns in the loop (such that image1 may be "picture1.jpg" on some trial, "picture2.jpg" on another etc.. More info here:

    If you're unfamiliar with populating a skechpad to display images based on the information contained in the loop, I recommend you first read through the documentation and the beginner's tutorials.

    Best,

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.