What’s the correct way to do csv-based image stimuli on Pavlovia?
We are starting a MST implementation that needs to display images from pre-selected random orders, so we have the ImageStim pull from
$image_filename every repeat, and a code element that runs at Begin Routine sets that path.
This works fine running in Python, but on the JS side we get "Unfortunately we encountered an error: when setting the image of ImageStim: image … when getting the value of resource: stimulus_sets/set_1/1.jpg: unknown resource
So the JS side is setting the correct path, but the resource is not getting preloaded because the preload pipeline doesn’t know about it.
How to fix this? Do we need to add code to iterate over the possible stimuli and preload them into the resources? I’m not sure I understand how the backend for that works, yet.
(We’ll also need to make the CSV conditions file dynamic as well, eventually which will tie into how resources are loaded…)