I loaded two condition lists that contain the image locations in the Begin experiment code component. Then shuffled them.
I want the image to display from either of this two list based on my condition file:
Within the loop, the display should sequentially go through all the conditions in this condition file.
Unfortunately, I cannot use the built in loop to random select the image, since I have complicated nested loops.
This is the code I have so far
###In the each frame #Count the number of blocks and event. n = currentLoop.thisN n_imageselect_1 = Imageselect_1.thisN n_eventcond_1 = eventcond_1.thisN n_blocks = blocks.thisN trialnow = n_blocks*8 +n_eventcond_1*4 + n_imageselect_1-1 if Imageselect_1.trialList[n_imageselect_1] == "Emotion": event_images = emotion_list[trialnow] elif Imageselect_1.trialList[n_imageselect_1] == "Neutral": event_images = neutral_list[trialnow] event_image = event_images[n]
I have a lot of counter for trial, event and block numbers, since the right image should choose based on how many images have been shown. Therefore, I have
event_images = emotion_list[trialnow] for getting the image from the correct row of the list.
I am also not sure whether event_image = event_images[n] can help me display my images.
I got this error
I must have more errors than only this one.
Thanks in advance!!