images as variable values-error
in OpenSesame
Hello! I am trying to build an experiment with an RSVP of images but i keep getting this error "IOError: The picture file '.png' does not exist". I am using 2.9.7 version of Open Sesame. Below is the link to the script. I also tried defining the parts of the variable in the loop with the extention .png (e.g: masks: mask1.png, mask2.png ech) and then going to every sketchpad to write: draw image 0 0 "[masks]" scale=1 center=1 z_index=0 show_if="always" but this didn't work either. Do you know why this keeps happening and how i could solve it? Thanks on advance for your replies, you are always very helpful.
Comments
Hi Maria,
It seems as though you have no complete filename. You're trying to call '.png', but I doubt that's name of your file? Are your pictures in the filepool?
Cheers
Josh
Hi! I have all the pictures in the filepool and they are all in the .png extension. I want it to choose randomly from the photos of each category i have defined as variable in the loop. The name of the variable does not include 'png'. But then again when I tried doing it in the other way i described (script below) i kept getting this error :
An empty string was passed to experiment.get_file(). Please specify a valid filename.
Could it be that it can't access the images? Is there a way to load them through an inline script without defining on advance the conditions on which i want them appearing? Thank you.