[Resolved] Space disappear in OSC command

Post bug reports here
Post Reply
Vellemum
Posts: 19
Joined: Sun Aug 28, 2016 8:52 pm

[Resolved] Space disappear in OSC command

Post by Vellemum » Mon Mar 01, 2021 1:13 am

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

Mike Daniell
Site Admin
Posts: 3629
Joined: Sun Jul 24, 2005 8:58 am
Location: Brisbane, Queensland, Australia. TZ:GMT+10
Contact:

Re: Space disappear in OSC command

Post by Mike Daniell » Mon Mar 01, 2021 6:58 pm

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.
Mike Daniell
Show Cue Systems Pty Ltd
mike@showcuesystems.com
Image

Vellemum
Posts: 19
Joined: Sun Aug 28, 2016 8:52 pm

Re: Space disappear in OSC command

Post by Vellemum » Mon Mar 01, 2021 10:06 pm

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

Post Reply