Skip to content

Script-driven OSC#1944

Open
ada-tv wants to merge 7 commits intooverte-org:masterfrom
ada-tv:feature/scriptable-osc
Open

Script-driven OSC#1944
ada-tv wants to merge 7 commits intooverte-org:masterfrom
ada-tv:feature/scriptable-osc

Conversation

@ada-tv
Copy link
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
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
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.

@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
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 needs QA This pull request needs to be tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants