Randomise two rectangled polygons

PsychoPy v2023.1.2:

I’m trying to create an experiment where my subjects has too compare the size of two rectangles.

I created a csv file with numbers for the sizes (4 columns; two for each rectangle)

I tried to set the rectangles properties towards the file but I can’t get it to work. It didn’t take $stim, $stim[A1,B1], $stim(A1,B1) or just $[A1,B1] → I could start the experiment, but I got no stimulus.

I tried [$A1,$B1] and got an error message.

is there a trick to this or an easier way to create randomise different sized rectangles where I can control for rectangle size to see if the test subjects chose the right size afterwards?

Thanks in advance

Hello,

does this toy-experiment meet your needs?

SizePoly.psyexp (11.0 KB)
PolySize.xlsx (17.7 KB)

Best wishes Jens

1 Like

This is exactly what I was trying to accomplish, thank you very much!!

Greetings
Torge