[open] Maximum number of pictures shown + repetitions
Hello everybody,
Does any of you maybe know if it is possible to upload a number of pictures en put them in a sketchpad and then limit the number of the pictures that will be shown?
More in detail: in the experimental design that I am trying to make I would like to have a collection of 100 pictures that would be randomly shown to the participants. Though I would like to show them just 1 of those 100 pictures. The sketchpad will be shown several times due to a blockloop and a sequence that will be shown multiple times. In this sequence there are more sketchpads that will be shown before and after the pictures descriped earlier. But the pictures need te be different every time (1/100 chance that this might not be different if the pictures are shown random, but that is ok).
There is another question that I had: Is there a possibility to give participants the opportunity to take a do-over at a sequence? So maybe a keyboard press that they can enter in order to re-run the sequence or the sketchpad? It would be great if OpenSesame can count the number of times that the participant chooses to do the task again.
Thank you in advance for your help,
Mandy
Comments
Hi Mandy,
I'm not completely sure I understand your question correctly, but you can use a variable to indicate which picture you want to show on a given trial. The easiest way to do this is to first insert one specific picture into a sketchpad. Next, you right-click on that picture and select 'Edit'. This will pop-up a string of script like this:
Now you can replace the specific picture by a variable, for example
[my_picture]:Of course, you will need to define the variable
[my_picture]in theblock_loop. This principle is also illustrated in more detail in the tutorial:Yes, you can add a
repeat_cycleplug-in (typically) to the end of the trial_sequence. This plug-in has a 'Repeat if' statement, which you can set to any arbitrary criterion. For example, if the trial_sequence contains akeyboard_responseitem, and you want to repeat the trial if a timeout occurred, you can set the 'Repeat if' statement to[response] = None.Hope this helps!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!