Showing a subset of stimuli - PsychoJS

I have, what I presume to be a fairly common scenario, but I haven’t found an elegant or straightforward solution.

I have a study that has ~2,400 stimuli across three conditions. The stimuli are separated into blocks within the conditions (numbered 1 through 50) and each block contains I want to show participants a subset of 96 images (30 from each condition) and each block contains 16 images. A participant should not see the same block in more than one condition (e.g., condition A, block 1 and 2; condition B, blocks 3 and 4; condition C, block 5 and 6).

I do not want to load all possible 2,400 images into a participant’s browser.

I am a aware that I can use a resource manager along with an ISI to load files during the experiment (so an image is loaded during the fixation duration). What I haven’t figured out is the best way to allocate participants to certain blocks and only have these load.

Is it most appropriate to write a code component that creates a dictionary of file names to be loaded rather than via the resource manager/static component? Or is there an alternative?

Any suggestions welcome, thanks!

I would do this.

Thanks Wakefield! I have this working and able to randomly select from multiple conditions files and load those stimuli during the ITI.

You are a wizard.

1 Like