Skip to content

Script-driven OSC#1944

Merged
ksuprynowicz merged 8 commits intooverte-org:masterfrom
ada-tv:feature/scriptable-osc
Mar 14, 2026
Merged

Script-driven OSC#1944
ksuprynowicz merged 8 commits intooverte-org:masterfrom
ada-tv:feature/scriptable-osc

Conversation

@ada-tv
Copy link
Copy Markdown
Collaborator

@ada-tv ada-tv commented Dec 12, 2025

The hifiOsc plugin is disabled by default, and only ever worked with face blendshapes sent from an ancient iPhone app.

This PR adds a new OSCSocket API that can be used by scripts to handle any OSC message they want.

OSCSocket.packetReceived.connect((address, args) => {
  // ...
});

OSCSocket.sendPacket("/test/path/1", 1, "hello", { type: "i", value: 2 });
// /test/path/1 ,fsi 1.0 "hello" 2

Tested in development with the oscd OSC debugging tool.

TODOs

  • Sending OSC packets
  • Re-binding the listen socket when receive{Host,Port} changes (UDP is connectionless, so send{Host,Port} can change transparently without needing reconfiguration)

@ada-tv ada-tv added the enhancement New feature or request label Dec 12, 2025
@ada-tv ada-tv force-pushed the feature/scriptable-osc branch from 99d0da9 to 2fb3ac7 Compare December 19, 2025 06:14
@daleglass
Copy link
Copy Markdown
Contributor

Spec for reference: https://opensoundcontrol.stanford.edu/spec-1_0.html

@ada-tv ada-tv marked this pull request as ready for review December 25, 2025 06:02
@ada-tv ada-tv added needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested labels Dec 25, 2025
@ada-tv ada-tv force-pushed the feature/scriptable-osc branch from ebf8651 to 537ad6c Compare December 25, 2025 06:13
Copy link
Copy Markdown
Member

@ksuprynowicz ksuprynowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good :)
I just have a question about default ports and logging message when sending packet.

Comment thread interface/src/scripting/OSCScriptingInterface.cpp
Comment thread interface/src/scripting/OSCScriptingInterface.cpp Outdated
@ksuprynowicz ksuprynowicz added CR approved This pull request has been successfully code reviewed and removed needs CR This pull request needs to be code reviewed labels Jan 4, 2026
@ada-tv ada-tv force-pushed the feature/scriptable-osc branch from 537ad6c to 3887479 Compare January 4, 2026 11:15
@ada-tv ada-tv force-pushed the feature/scriptable-osc branch from 3887479 to 892347a Compare March 14, 2026 11:08
@ksuprynowicz ksuprynowicz added QA approved This pull request has been successfully tested and removed needs QA This pull request needs to be tested labels Mar 14, 2026
@ksuprynowicz ksuprynowicz merged commit 91dc330 into overte-org:master Mar 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CR approved This pull request has been successfully code reviewed enhancement New feature or request QA approved This pull request has been successfully tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants