Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

OSC-Out - String problems

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: OSC-Out - String problems

Post by TobiTobsen » 24 May 2013, 20:41

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
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: OSC-Out - String problems

Post by TobiTobsen » 26 May 2013, 15:54

Please find attached a quick example... :-)
Attachments
SendingString.vza
(11.96 KiB) Downloaded 360 times
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

joysprod
Posts: 201
Joined: 20 Jan 2012, 12:24
Location: United Kingdom

Re: OSC-Out - String problems

Post by joysprod » 29 May 2013, 11:34

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

chriss0212
Posts: 666
Joined: 18 Jan 2012, 20:56
Location: wuppertal
Contact:

Re: OSC-Out - String problems

Post by chriss0212 » 29 May 2013, 16:36

hi peter

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

greetz

christian
Attachments
SendingString2.vza
(12.62 KiB) Downloaded 347 times

joysprod
Posts: 201
Joined: 20 Jan 2012, 12:24
Location: United Kingdom

Re: OSC-Out - String problems

Post by joysprod » 30 May 2013, 14:20

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

Post Reply