From 31569c3b41266808dbae4a2f49bb9e06f983fbb8 Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Tue, 12 Jul 2022 14:00:22 -0700 Subject: [PATCH] fix inverted blink --- EyeTrackApp-SingleCam/osc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EyeTrackApp-SingleCam/osc.py b/EyeTrackApp-SingleCam/osc.py index 41fbb12..d6baa5e 100644 --- a/EyeTrackApp-SingleCam/osc.py +++ b/EyeTrackApp-SingleCam/osc.py @@ -33,10 +33,10 @@ class VRChatOSC: self.client.send_message("/avatar/parameters/LeftEyeX", eye_info.x) self.client.send_message("/avatar/parameters/EyesY", eye_info.y) if was_blinking: - self.client.send_message("/avatar/parameters/LeftEyeLid", float(1)) - self.client.send_message("/avatar/parameters/RightEyeLid", float(1)) + self.client.send_message("/avatar/parameters/LeftEyeLid", float(0)) + self.client.send_message("/avatar/parameters/RightEyeLid", float(0)) was_blinking = False else: - self.client.send_message("/avatar/parameters/LeftEyeLid", float(0)) - self.client.send_message("/avatar/parameters/RightEyeLid", float(0)) + self.client.send_message("/avatar/parameters/LeftEyeLid", float(1)) + self.client.send_message("/avatar/parameters/RightEyeLid", float(1)) was_blinking = True