Description of the problem: I am trying to show my Stimulus Picture for 3 frames. Now I know that I should be preloading all of the images necessary so that is actually possible.
My code for that is as follows(primelistA is just a list of the image paths):
Side question here how would I access member Variables of the ImageStim class? E.g get the name of the image file.
Now that I preloaded all the images I want to show them in another routine like this:
Hi @huppfi, have you tried setting autodraw? E.g., stim.setAutoDraw(true);. Also, you may want to declare your variables in your for loops e.g., for (var file of primelistA) {
@dvbridges thanks that seems to work now! But setting the AutoDraw to false does not make the picture disappear. Is there a way to do that without setting the opacity to 0.0?
Also do you have any Idea how to get the Image name from a ImageStim object?
Im having trouble debugging your exp at the minute because stimname is not defined. You might want to define this as let stimname = ...etc or var stimname - ...etc.