Setting the contents of a text object via OSC

Discuss Lemur and share techniques.
ahonoe
Newbie
Posts: 25
Joined: 07 Feb 2012 22:30

Setting the contents of a text object via OSC

Post by ahonoe »

Hi All,

I know this has been asked before but how does one go about changing the value of a Text object via OSC? I have tried sending the string "@content hello" (without the quote) to the address of my object, "/Text/", on port 8000 on my iPad but no love. I have confirmed that the iPad is receiving OSC properly using TouchOSC.

Thanks.
Regards,

Scott
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Setting the contents of a text object via OSC

Post by Macciza »

Hi
Try /OSCAddress/Object @content "Hello" - Quotes are needed for the string "Hello"

/Text @content "Hello"
/Container/Text @content "Hi"

Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
ahonoe
Newbie
Posts: 25
Joined: 07 Feb 2012 22:30

Re: Setting the contents of a text object via OSC

Post by ahonoe »

Thanks Macciza.

I tried your suggestions but still no go. Can you suggest a simpler test to try? I'd like to confirm that I can send anything to Lemur.

Thanks.
Regards,

Scott
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Setting the contents of a text object via OSC

Post by Macciza »

Hi
What are you sending from?
For Max - use udpsend with ipad address and 8000 for port - send it message /Text @content Hi
Oh and it seems you don't always need the quotes - message box in max won't take them but works.
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
ahonoe
Newbie
Posts: 25
Joined: 07 Feb 2012 22:30

Re: Setting the contents of a text object via OSC

Post by ahonoe »

I'm using the French patching app Usine as well as Bidule.

I've tried with and without the quotes. Just wondering if I should try setting the property of another object with a simpler property setting. Maybe a LED?
Regards,

Scott
Diversgens
Newbie
Posts: 39
Joined: 14 Jan 2012 22:32

Re: Setting the contents of a text object via OSC

Post by Diversgens »

To display contents from OSC,
I suppose the text object is called Text1
create a script it the text object , name it 'content' for example.
Set Execution on 'On OSC', verify the adress, have to be /Text1/content
Type : setattribute(Text1, 'content', OSC_ARGS);

now if you send a string for your application to the adress /Text1/content it must work.
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Setting the contents of a text object via OSC

Post by axel_liine »

Diversgens wrote:To display contents from OSC,
I suppose the text object is called Text1
create a script it the text object , name it 'content' for example.
Set Execution on 'On OSC', verify the adress, have to be /Text1/content
Type : setattribute(Text1, 'content', OSC_ARGS);

now if you send a string for your application to the adress /Text1/content it must work.
That's a bit overkill. All attributes can be set from OSC already using the '@' prefix :
/Text @content Whatever

To the original poster, can you post a screenshot of how you set up the destination of your OSC messages in Usine and Bidule ? Could be a mistake in the destination IP or port.
Diversgens
Newbie
Posts: 39
Joined: 14 Jan 2012 22:32

Re: Setting the contents of a text object via OSC

Post by Diversgens »

You are surely right Axel, but in some case (in Reaper for me, with dynamic content) the solution you give does not work.
I will post soon a beta template for Lemur in Reaper, perhaps can you look at it at this moment and point me to some mistake i have done.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Setting the contents of a text object via OSC

Post by Macciza »

Hi
I can use the @attribute method very easily in Max . . .
I had a look at Bidule, I don' t really use it, and could not work out there OSC methodology . . .
OSC has a few oddities - Sorry, follow it up with Axel -. . .
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
ahonoe
Newbie
Posts: 25
Joined: 07 Feb 2012 22:30

Re: Setting the contents of a text object via OSC

Post by ahonoe »

Thanks for everyone's replies. Here is my bidule layout.
bidule_to_lemur.1.png
bidule_to_lemur.1.png (206.15 KiB) Viewed 8122 times
You can see the messages going out in the OSC monitor on the left.
Regards,

Scott
Post Reply