OS: MacOS Pro M3
PsychoPy version: 2024.2.4, Python 3.8
Standalone Installation: Yes
URL of experiment: N/A
Run locally: No
What are you trying to achieve?: I have an existing experiment with certain routines, where I am using camera component to record participants’ activity through webcam. The goal is to use these videos later to estimate their gaze pattern, since I want high precision I can’t use WebGazer. However I need to design my own calibration tasks- I need both fixed gaze task and smooth pursuit task (screenshots of demo attached). I need to scale this according to the window size. I tried different online code repositories which didn’t work. vespr / Moving Cue · GitLab and demos / demo_eye_tracking2 · GitLab
What did you try to make it work and what went wrong?:
Attempt 1
Experiment in the first link (designed by @wakecarter), one attempt for calibration worked, I even modified the paths file to make the smooth pursuit path as I wanted. But, when I tried to make multiple copies of it, to do the same calibration multiple times, it failed and kept giving me errors like below. I changed variable names in other copies but didn’t work and in fact gave me error from the first routine from the above link.
42.4622 WARNING launchHubServer: If using the iohub mouse or eyetracker devices, fullScr should be True. File "/Users/avisha/Documents/moving-cue-2/moving-cue_lastrun.py", line 861, in <module> run( File "/Users/avisha/Documents/moving-cue-2/moving-cue_lastrun.py", line 613, in run cuePos = (xScale*(pathStart[0]+(float(thisPath['pathEnd'][0])-pathStart[0])*posClock.getTime()/float(thisPath['pathTime'])), yScale*(pathStart[1]+(float(thisPath['pathEnd'][1])-pathStart[1])*posClock.getTime()/float(thisPath['pathTime']))) TypeError: 'NoneType' object is not subscriptable 3.4508 WARNING Monitor specification not found. Creating a temporary one... ioHub Server Process Completed With Code: 0 ################ Experiment ended with exit code 1 [pid:64863] #################
Attempt 2
The second one, I tried but it needs scaling according to window size and also need to make another version of it where its a horizontal smooth pursuit, but since I dont have much psychopy coding experience, its not working. if there are any resources which could help me that would be great. I have questions like should I use an external coordinates/path file and then put the routine in a loop vs code everything in the routine.

