Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get an OscBundle #20

Open
davemod opened this issue Apr 20, 2017 · 6 comments
Open

Get an OscBundle #20

davemod opened this issue Apr 20, 2017 · 6 comments

Comments

@davemod
Copy link

davemod commented Apr 20, 2017

Hey there. How do I get several Adresses and Values from an OSC Bundle when I receive OSC in Unity? I dont get that to work. Thank you very much in advance

David

@jorgegarcia
Copy link
Owner

Hi @davemod,

Please check the tests/oscControl.cs example script from the repository. From there you can read OSC Bundles as OSC Messages with the following:

UnityOSC.OSCMessage m = item.Value.packets[lastPacketIndex].Data[0] as UnityOSC.OSCMessage;
string address = m.Address;

Hope it helps!

Cheers,
Jorge

@Schroedingers-Cat
Copy link
Contributor

Hi @jorgegarcia,

related to this issue, is it possible to send an OscBundle with UnityOSC? If yes, do you have an example for this?

@jorgegarcia
Copy link
Owner

jorgegarcia commented Apr 15, 2020

Hi @Schroedingers-Cat,

As far as I can see (and remember now) the OSC bundle packing is not implemented in this library, sorry. See below:

override public void Pack()

Best,
Jorge

@Schroedingers-Cat
Copy link
Contributor

Thanks for the reply!

It turned out that OSC Bundles wasn't what I needed. I want to send a message with a list of arguments like this /source/1/aed 0 0 1. I'm currently unsure how this feature is called in the OSC spec - but does this library support sending consecutive arguments in a message?

@jorgegarcia
Copy link
Owner

Hi @Schroedingers-Cat,

Please see section 3 (usage) from the manual. You can send ranges of values in the same OSC address with UnityOSC:

https://github.com/jorgegarcia/UnityOSC/blob/master/docs/UnityOSC_manual.pdf

Hope it helps!

Jorge

@Schroedingers-Cat
Copy link
Contributor

Thanks, this is working great!

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

No branches or pull requests

3 participants