Howdy, Stranger!

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

Supported by

[open] Maximum number of pictures shown + repetitions

edited June 2013 in OpenSesame

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

  • edited 1:46AM

    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:

    draw image 0.0 0.0 "smiley.png" scale=1.0 center=1 show_if="always"
    

    Now you can replace the specific picture by a variable, for example [my_picture]:

    draw image 0.0 0.0 [my_picture] scale=1.0 center=1 show_if="always"
    

    Of course, you will need to define the variable [my_picture] in the block_loop. This principle is also illustrated in more detail in the tutorial:

    Is there a possibility to give participants the opportunity to take a do-over at a sequence?

    Yes, you can add a repeat_cycle plug-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 a keyboard_response item, 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

Sign In or Register to comment.