Skip to content

Conversation

alicwyz
Copy link

@alicwyz alicwyz commented Mar 12, 2025

Pull request - OSC nodes

Summary

Added three new OSC nodes: OSC Setup Server, OSC Receive, OSC Send.

Captura de tela 2025-03-12 181910

List of changes

  • Added files to editor/nodes/actions -> oscsetupserver.py, oscreceive.py, oscsend.py
  • Changed lines in editor/nodes/__init__.py -> Import the new nodes
  • Changed lines in ui/node_menu.py -> Added the new nodes to the Network tab

Checks

  • Addon compiles
  • Nodes found in the UI
  • Nodes can be added
  • Nodes compile (not yet)
  • Nodes are working (not yet)

Further comments

  • The uplogic class names were changed, so some of them don't match with my old code. The new ones are: ULOSCSetupServer, ULOSCReceive, ULOSCSend
  • Some other nodes from the previous version weren't added (OSC Filter, OSC Listener, OSC Sequencer), to avoid UI clutter.
  • "OSC Setup Server" has a new input: "Default Adress". This was previously included in OSC Filter.

TO-DO

  • "OSC Receive" should support regex matching with OSC style addresses (like /osc/*/guitar). For that, it should have two outputs: Messages (dictionary), Value (parameter/float/list)
  • Uplogic classes should be updated and cleaned up

@BWJ2310
Copy link

BWJ2310 commented Jul 12, 2025

Hi! Is there any updates on this OSC implementation? I find this very helpful instead of writing OSC integration with python script

@alicwyz
Copy link
Author

alicwyz commented Jul 13, 2025

Hi! Is there any updates on this OSC implementation? I find this very helpful instead of writing OSC integration with python script (@BWJ2310)

I had no more replies from the official devs, so I turned it into an addon for UPBGE 0.3.6. It basically added/changed some files in the /uplogic and /logicnodes folders to implement those nodes.

It does not work in the newer version though, because the logicnodes code changed quite a bit and the addon was using the old version. The code I wrote in this PR followed the new structure, so it could be used to update the OSC nodes addon. The uplogic part should work fine in both versions.

If you're interested in messing with the code, or updating it yourself, I can send the files to you! Maybe just a bit of replacing here and there could make it work, but I've had no time to develop it more.

@BWJ2310
Copy link

BWJ2310 commented Jul 13, 2025

I had no more replies from the official devs, so I turned it into an addon for UPBGE 0.3.6. It basically added/changed some files in the /uplogic and /logicnodes folders to implement those nodes.

It does not work in the newer version though, because the logicnodes code changed quite a bit and the addon was using the old version. The code I wrote in this PR followed the new structure, so it could be used to update the OSC nodes addon. The uplogic part should work fine in both versions.

If you're interested in messing with the code, or updating it yourself, I can send the files to you! Maybe just a bit of replacing here and there could make it work, but I've had no time to develop it more.

Thanks for your reply! I found your upbge_osc_nodes repository that needs to replace/add code to the UPBGE directory and I'm using the codes under 4.5 folder with UPBGE 0.44. so far it's not working but I will keep trying.

it would be super helpful if you can send me a sample UPBGE file that shows how the nodes are setup. I'm a bit confused if it's my node setup is incorrect or it's the code that has some problem.

I only want to use receive/send OSC messages, and other functionality like OSC sequencer is not required

@alicwyz
Copy link
Author

alicwyz commented Jul 13, 2025

I had no more replies from the official devs, so I turned it into an addon for UPBGE 0.3.6. It basically added/changed some files in the /uplogic and /logicnodes folders to implement those nodes.
It does not work in the newer version though, because the logicnodes code changed quite a bit and the addon was using the old version. The code I wrote in this PR followed the new structure, so it could be used to update the OSC nodes addon. The uplogic part should work fine in both versions.
If you're interested in messing with the code, or updating it yourself, I can send the files to you! Maybe just a bit of replacing here and there could make it work, but I've had no time to develop it more.

Thanks for your reply! I found your upbge_osc_nodes repository that needs to replace/add code to the UPBGE directory and I'm using the codes under 4.5 folder with UPBGE 0.44. so far it's not working but I will keep trying.

it would be super helpful if you can send me a sample UPBGE file that shows how the nodes are setup. I'm a bit confused if it's my node setup is incorrect or it's the code that has some problem.

Oh that repo is really outdated, I didn't have the time to keep it up so I have no idea what is going on there lol. I can send you the files through email or discord, my username is alicwz.

@BWJ2310
Copy link

BWJ2310 commented Jul 13, 2025

Oh that repo is really outdated, I didn't have the time to keep it up so I have no idea what is going on there lol. I can send you the files through email or discord, my username is alicwz.

Hi! I sent a friend request to you, and my discord id is bruz.wj. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants