| Reference | Downloads | Github

Webgazer - can you move the webcam position?

URL of experiment:

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 “” 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!

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