I’m trying to find the best way to implement the rating scale in the attached image.
The participant needs to click anywhere in the white space, and I need to know the location of the click relative to the space (on both axis)
I need precise coordinates, so the categorial scale is less good for me. what i mean - to be able to chose from the whole space and not just in the boxes
for Ydx in [1,0,-1]:
for Xdx in [-1,0,1]:
if Xdx!=0 or Ydx !=0:
grid.append(visual.TextStim(win=win, name='errortext',
text=gridText[Magdx],
font='Arial',
pos=(xOffset+maxScore*1.3*gridSize*Xdx, maxScore*1.1*gridSize*Ydx),
height=0.04,
wrapWidth=.3,
ori=0,
color=textColour))
Magdx+=1
Hello! I am attempting to build an experiment that essentially combines your affect grid with a continuous scale to see what participants’ affect is every few frames of a video. How would you suggest I do that?
a) Remove round() from code_grid Each Frame lines 5 and 7.
b) Add code to save the ranting every few frames, e.g.
if frameN % 3 == 0:
arousal=int(((2*ypos/gridSize)+ypos/abs(ypos))/2)
pleasure=int(((2*xpos/gridSize)+xpos/abs(xpos))/2)
thisExp.addData('timepoint',t)
thisExp.addData('arousal',arousal)
thisExp.addData('pleasure',pleasure)
thisExp.nextEntry() # To move to next row in data file
You might also need to change the size and position if you want the video on the same screen.
Thank you for the help! When you say "remove round() " do you mean just the word round and the parentheses, or also the text within the parentheses? Sorry I’m super new to Python and PsychoPy. With adding your code and removing round() it is now allowing the grid cursor to move wherever, and once it breaks the bounds of the grid it kind of shoots itself to the outer edges of the screen. Do you know why this might be?