Automatically linking vposition and hposition


Author
Message
Brabagazaa
Brabagazaa
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 79
Dear all,

I ran into a slight problem and could not find a straightforward solution on the forum. I am drawing multiple items on the screen for each trial, the horizontal positions are in a list and picked at random, however all the shape also need a vertical position and I could not see how to make a list with tuple, something like:
list = [(x1, y1), (x2, y2), etc]

At the moment I wrote an expression that checks all the possible horizontal positions and matches the correct vertical position to it, so that each picture has the correct combination of vertical position + horizontal position, I was wondering if there might be an easier way to combine these values? Any suggestions would be great,

Roelof

PS: Attached a simplified example that shows the basic structure, the actual experiment uses set sizes 5,7,9, with all different coordinates, at which point writing the expressions becomes more arduous

Attachments
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Brabagazaa - 7 Years Ago
Dave - 7 Years Ago
Brabagazaa - 7 Years Ago
S F - 7 Years Ago
S F - 7 Years Ago
                     + x [quote] [b] S F - Monday, October 16, 2017 [/b] +...
Dave - 7 Years Ago
                         + x [quote] [b] Dave - Monday, October 16, 2017 [/b]...
S F - 7 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search