Webgazer - can you move the webcam position?

URL of experiment: https://run.pavlovia.org/lpxhs/eyetrackingexp/?participant=9999

Description of the problem:
I’m using Webgazer to measure participants’ eye movements.
I want to move the webcam to the top centre of the screen.

I have tried editing the “webgazer-2.0.1.tp.js” file so that the “leftDist” variable on line 88231 is (psychoJS.window.size[0] / 2) + 'px';. psychoJS.window.size[0] / 2 gives me the centre of the screen.
However, this doesn’t move the webcam’s position.

What do I need to do here?

Thank you in advance!
Hannah

I needed (window.screen.width/2) + 'px';, not (psychoJS.window.size[0] / 2) + ‘px’;

Hey, happy to see it’s working out for you :slight_smile:

1 Like