Hi, I am very new to PsychoPy so apologise if I ask this question badly!
I am building an experiment in builder view using PsychoPy version 1.85.2. It is made up of two trials.
Using the code component I have written a piece of code which produces a list of file paths for images to which the participant responded fastest. When I print the list it looks like this:
I was planning on using this list as the input for my image component in my second trial but PsychoPy does not seem to recognise these strings as file paths in this format. Is there anyway that I can edit this list so that it can be used in this way? Or alternatively tell PsychoPy to expect a list of file paths.
@Nick, what is the error message that you get? ~If you are presenting your images in the second part of your experiment in a loop, then the following should work. Assuming your loop in your second part of the experiment is trials2, and has a code and image component, in the code component:
# Begin Routine tab
image.setImage(yourFileList[trials2.thisTrialN]) # where image is name of your image component