BEGINNER QUESTIONS: Creating Grated Stim with random orientations

Hi yall, I’m BRAND new to psychopy and trying to build the following experiment

  • Present gabor patches (random number and random orientations) to participants
  • Ask for estimate of number of items they saw
  • Get the specs about the number and orientations of the stim to analyze later

Here are my problems so far:

  1. I’ve been using this tutorial.) to learn, but I’m having trouble creating a for loop that’s not based on a staircase function.

  2. I’m not sure how to make multiple stim appear at the same time. I know you can use ElementArrayStim for this, but I’m having trouble understanding how to incorporate this with the grated stim.

Thank you so much for your patience and advice!

You don’t necessarily need an Element Array for this! In the Routine Canvas, the bars represent when the stimuli are on screen - if two bars overlap, then the two stimuli are on screen at the same time. When you say creating a for loop, do you mean using Builder or using code? A for loop in Python code just looks like this:

for value in listOfValues:

but if you want to add a loop in Builder, you can do so using the Insert Loop button in the bottom left