Fabio
About
- Username
- Fabio
- Joined
- Visits
- 6
- Last Active
- Roles
- Member
Comments
-
Hi Eduard, Yes, I ended up using an inline script to do this, it now works just as I need it to. Just in case anyone else needs to do something similar, this is my code. This part sets up the canvas that participants will use to perform their resp…
-
Hi Roelof, I'm getting the position of point 2 via a mouse.get_click() function, which I think stores it as a tuple. I then unpack the tuple into the separate xpos and ypos to do other stuff with them in the script, but I could in principle still u…
-
Hi Sebastiaan, Can the location of widgets be specified in pixel space in a canvas, rather than in terms of rows and columns?
-
Thanks Laurant, that helps a lot! What if I wanted to give participants the chance to change their response (i.e. re-orient the arrow) and then confirm it by pressing on a button (that would appear in the middle of the circle after the arrow was fir…
-
Thanks Roelof! It seems to work now - or, at least, it produces some output. However, the output doesn't seem to make sense in either radians or degrees, so I suspect there's definitely something wrong with my trigonometry. For the record, these are…
-
Ok, progress! I've added the my_canvas.show() line as you suggested, and It seems to be doing something, at least with the PsychoPy backend. Is there a way to make the cursor visible, at least for testing on Windows? That way I know where the arrow …
-
I noticed that I was asking it to draw the tip at the click position, while also accidentally trying to force a fixed arrow length, so I changed the code as follows: my_canvas = canvas()my_mouse = mouse()while True: my_canvas.clear() …
-
I'm sorry to resurrect this thread, but I've only just been able to get back to OpenSesame and I'm now finding it rather tricky to build my experiment. The sequence involves a visual stimulus being presented on a sketchpad item while an audio recor…
-
Thank you, that makes sense. I guess I took "mouse response" quite literally :)