Page 2 of 2

Re: OSC-Out - String problems

Posted: 24 May 2013, 20:41
by TobiTobsen
selor wrote:
TobiTobsen wrote:If anyone is also facing the task to send Strings via OSC, check the attaced scene.
I used Ventuz OSC implementation, the node can now send a String array.

Cheers,
Tobi
Thanks toby ..
really insteresting to unsealed the node in order to understand for others ...

Is it possible to handle the same way for listening or formating the osc blobs for strings received from touchOSC ?

I am not sure where I stored the project file, but it's not that special. I think I did it with the Ventuz own OSC lib... But you are right, sharing is caring :-), sharing kowledge sometimes comes to short here. Let me check next week if I find it.

Cheers, Tobi

Re: OSC-Out - String problems

Posted: 26 May 2013, 15:54
by TobiTobsen
Please find attached a quick example... :-)

Re: OSC-Out - String problems

Posted: 29 May 2013, 11:34
by joysprod
Hi Toby. Thanks for that. Very handy to finally be able to send text to Lemur!

My limited knowledge of C# is letting me down as I wanted to have an input in the node for changing the IP address that it sends too, instead of opening the node each time to change the value. I have added two string inputs to the custom model IPAddress and OSCAddress. OSCAddress is working fine but having a problem with getting the IPAddress into the Method when it is loaded/created.

How do I get the string value of the IPAddress into the method? The following does not work as I am not getting the value of the IP that I have input:-

// This Method is called if the component is loaded/created.
public Script()
{
//Creating writer instance, defining IP Address and port for OSC receiver
//We are sending here to localhost and port 3000

writer = new Ventuz.OSC.UdpWriter(IPAddress, 8000);
}

Any help appreciated.

Peter

Re: OSC-Out - String problems

Posted: 29 May 2013, 16:36
by chriss0212
hi peter

as you i am not a scripting guru....but try this ;)

greetz

christian

Re: OSC-Out - String problems

Posted: 30 May 2013, 14:20
by joysprod
Hi Christian,

Its obvious now I see your solution! I was concentrating too much on how to achieve the solution keeping the OSC.writer function inside of the load/create Method. I dont know if it is easily possible to use a variable in this load/create method as i think at that time no variable have been assigned. I'm sure the 'experts' know the correct way!

Regards

Peter