Page 1 of 1

[Resolved] Space disappear in OSC command

Posted: Mon Mar 01, 2021 1:13 am
by Vellemum
Hi Mike,

I'm testing a setup with Bitfocus Companion (BC) software to control a 15-button Streamdeck.
In the documentation of BC is written that you can send OSC-commands to the Streamdeck.
The Control Send cue with a Free Format OSC-message in SCS is: "/style/text/1/12 TEST" (without the quotes). When I view this command on another computer with SCS in 'Network Test' I can see the space before the word TEST is disappeared. But it does put a space and comma after the word TEST.
I think this is a bug because I did also test with the command: "/cue/go ,s 5" (without the quotes). Then the space before the comma is still there. So SCS doesn't remove all spaces in an OSC command. And in this case it doesn't put a space and comma after the command.

But perhaps I'm doing something wrong. Can you explain what is happening?

More info on OSC sending to Streamdeck with BC can be found near the bottom of this link: https://github.com/bitfocus/companion/b ... started.md

Regards, Eelco

Re: Space disappear in OSC command

Posted: Mon Mar 01, 2021 6:58 pm
by Mike Daniell
Vellemum wrote:
Mon Mar 01, 2021 1:13 am
The Control Send cue with a Free Format OSC-message in SCS is: "/style/text/1/12 TEST" (without the quotes). When I view this command on another computer with SCS in 'Network Test' I can see the space before the word TEST is disappeared.
I haven't yet looked into why the space before TEST disappeared, but "/style/text/1/12 TEST" is not a valid format for an OSC message, and that may the reason. The format of an OSC message is "<address pattern> <type tag string> <arguments>" (without quotes). Your message is missing the <type tag string>, so I presume what you really need is "/style/text/1/12 ,s TEST" where ",s" is the <type tag string>.

See Control Send - Network - OSC Free Format for more info.

Re: Space disappear in OSC command

Posted: Mon Mar 01, 2021 10:06 pm
by Vellemum
Hi Mike,

Your suggestion does work. Thanks a lot!
For people like me who also are not to familiar with OSC messages: if in my example the word TEST is replaced by more words with spaces in between, you have to put these words between double quotes. Like "TEST A SECOND TIME".

Regards, Eelco