Hi everybody!
I’m new to PsychoPy, and I have a question about randomization. I have two sets of videos that will be shown side-by-side to the user. How can I randomize the sides of the screen the videos in each pair appear on, and how can I randomize the order the experiment runs through the trials? Many, many thanks!
Each each video always paired with the same other video? If so then random presentation of the pairs can be dealt with by the loop.
Which video appears on the left can be dealt with by a small piece of code in Begin Routine.
positions= [[-.5,0],[.5,0]]
shuffle (positions)
Then put positions[0] as the location of one video (set to update each repeat) and positions[1] for the other.
The code component needs to be above the video components.
Yes, the videos are in fixed pairs.
Thank you so much! This works great!
1 Like