Hi there, I’m writing a project to trigger an event based on an OSC “lift” event from my headset I’ve gotten the python OSC example script working and connecting to EmotiveBCI. And when I run it it gives me the following
/com/neutral: (0.0,)
/com/neutral: (0.0,)
/com/lift: (0.34032198786735535,)
/com/lift: (0.460563987493515,)
/com/lift: (0.562188982963562,)
on an infinite loop. I’d like to capture and execute a block of code when a /com/lift event is detected but I don’t see how to access that stream in the code. My python is so-so and as far as I can see that output is generated by the line.
server.serve_forever()
How would I go about capturing the output and triggering executing further code based on a lift event? I can’t find any other good examples and am a bit stuck.
Thanks in advance.