Setting the contents of a text object via OSC
Setting the contents of a text object via OSC
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.
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
Scott
Re: Setting the contents of a text object via OSC
Hi
Try /OSCAddress/Object @content "Hello" - Quotes are needed for the string "Hello"
/Text @content "Hello"
/Container/Text @content "Hi"
Cheers
MM
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]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Re: Setting the contents of a text object via OSC
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.
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
Scott
Re: Setting the contents of a text object via OSC
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
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]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Re: Setting the contents of a text object via OSC
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?
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
Scott
-
- Newbie
- Posts: 39
- Joined: 14 Jan 2012 22:32
Re: Setting the contents of a text object via OSC
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.
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.
-
- Liine Staff
- Posts: 126
- Joined: 14 Dec 2011 12:12
Re: Setting the contents of a text object via OSC
That's a bit overkill. All attributes can be set from OSC already using the '@' prefix :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.
/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.
-
- Newbie
- Posts: 39
- Joined: 14 Jan 2012 22:32
Re: Setting the contents of a text object via OSC
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.
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.
Re: Setting the contents of a text object via OSC
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
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]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Re: Setting the contents of a text object via OSC
Thanks for everyone's replies. Here is my bidule layout.
You can see the messages going out in the OSC monitor on the left.
You can see the messages going out in the OSC monitor on the left.
Regards,
Scott
Scott