OSC Text String with Line Break \r \n [NEW_LINE]?

edited February 6 in MAIN

Does anyone know how to add a line break to an OSC command? I'm trying to get longer text values to break at a specific point. I've tried the following commands and attached a picture of the value Millumin is receiving.

oscsend localhost 5000 /LAYER/currentMedia/fullText s "HELLO \n WORLD";

oscsend localhost 5000 /LAYER/currentMedia/fullText s "HELLO \r WORLD";

oscsend localhost 5000 /LAYER/currentMedia/fullText s "HELLO \r\n WORLD";

oscsend localhost 5000 /LAYER/currentMedia/fullText s "HELLO [NEW_LINE] WORLD";

oscsend localhost 5000 /LAYER/currentMedia/fullText s "HELLO"+ "\n" +" WORLD";

If anyone is curious, I am dynamically pulling live data from a shared spreadsheet, counting the characters and words in the data and then trying to insert a line break when the text value gets too long.

Thanks for any knowledge!

Comments

  • SOLVED!!

    Turns out you need to use Bash to get Millumin to see the \n as a newline character.

    Here's the command that worked:

    oscsend localhost 5000 /LAYER/currentMedia/text s $'HELLO\nWORLD'

Sign In or Register to comment.