Force download a set of images again using PsychoJS / Builder

Is there a way to force download a set of images again? I’ve dabbled with prepareResources() and _downloadResources(), but to no avail.

My use-case is such that I’m changing the file at the same location and keeping the name same. I want the new image to be reflected during presentation.

Thanks for help!

If you have an image a.png then that should stay the same.

You can change the image used by an image component from a.png to b.png either by using a variable name set each repeat (or possibly even each frame) or using a code component using something like image.setImage(‘b.png’)

That makes sense. Changing the name of the new file and loading it as a new resource is what am going with.

Thanks!