Code Components in PsychoPy Builder (Eye Tracker)

Hey, I need help, I’m displaying some random numbers by using psychopy builder but I want to know the pupil_diameter and Pupil_validity while displaying the numbers, could someone help me on how to write code to get the pupil_diameter and Pupil_validity by connecting eye tracker to the Psychopy builder?

This is something that would be located in the output file. I assume you are using a Tobii? If so, I don’t think you can get that through the SDK.