playMaker

Author Topic: Can playmaker support OSC? like touchosc?  (Read 2659 times)

elbows

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Can playmaker support OSC? like touchosc?
« Reply #15 on: March 01, 2012, 02:42:47 PM »
OK I think your problem is because I only provided example Actions which could picked OSC messages which have either 1 or 3 float values, and you need one that receives 2 float values in a message.

The attached action should do what you want, I just tested it with the xy-pad in touchosc.

With this one you need to create 2 PlayMaker Float variables and tell the Get Osc Two Floats Action to use one for the 'Store First Result' and the other for 'Store Second Result'.

EDIT - attachment removed as a newer version is available in a later post
« Last Edit: March 02, 2012, 01:33:11 PM by elbows »

kyy921

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • 上海杉蔓数字科技
Re: Can playmaker support OSC? like touchosc?
« Reply #16 on: March 02, 2012, 03:03:30 AM »
yeah! the new 2float actions works very well, :)
another problem is when you switch to another tab, and the control with the unity3d will break
VRsandman is an Virtual Reality company, major in architecture ,medical ,industry and data visualization, (上海杉蔓数字科技是领先的虚拟现实解决方案供应商 专注与 建筑 医疗 工业 和数据可视化)

elbows

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Can playmaker support OSC? like touchosc?
« Reply #17 on: March 02, 2012, 08:30:36 AM »
Sorry about that. My code in PMOSC.cs that attempts to show you the last OSC Message Address & Values received was not very good, it did not like receiving OSC messages that had no value.

Please replace PMOSC.cs with the attached version which works properly.

Also note that when you don't need to see the incoming OSC Message Addresses & Values for debugging purposes, you should untick 'Debug Osc Messages' option in PMOSC for a slight increase in performance.

I should do the same checks inside the Actions really, will fix this soon, for now you are OK as long as you make sure to always pick an Action that listens for the same number of values in a particular OSC message as are actually being sent.

elbows

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: Can playmaker support OSC? like touchosc?
« Reply #18 on: March 02, 2012, 12:13:25 PM »
OK I really hated the fact that my implementation only allowed a particular OSC Message Address to be listened to by one PlayMaker Action simultaneously, this isn't foolproof enough. So I messed around with the Osc.cs code and managed to work around this issue, now you can listen for a particular OSC Message Address (e.g. /1/fader1) as many times as you like simultaneously in different Playmaker FSMs and it should work. Yay, thats a better fit for PlayMaker :) Requires more testing really but I will post it here, simply replace the files in your project with the ones attached to this post.

Also updated the Actions so that they check to make sure the right number of values came with the message they are receiving. Now if less values came through than the Action is designed to handle, the Action will not do anything with that message. If more values are received than they are designed to handle, then they use the ones they are designed to handle and ignore the rest.
« Last Edit: March 02, 2012, 12:19:30 PM by elbows »

Drakon

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Can playmaker support OSC? like touchosc?
« Reply #19 on: May 30, 2012, 04:03:06 AM »
Hi Guys,

Will this set up work on the iOS per chance? I'd like to control Ableton live with it. Naturally, I'm not a C# coder. What would be the reality of getting this functionality together? Any advice much appreciated.

Drakon

rmd

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Can playmaker support OSC? like touchosc?
« Reply #20 on: April 10, 2013, 02:13:46 AM »
hey,

thanks for your implementation!
i tried to set it up, getting 3 floats from VDMX5 (lo, mid, hi) to unity over OSC.
the correct values show up in the debug section of the PMOSC.cs,
but the playmaker actions (get osc float) don't seem to be able to get the values.
(i'm on unity4 and pm 1.5.3)
any ideas? thanks.

eduardomarques

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Can playmaker support OSC? like touchosc?
« Reply #21 on: May 07, 2013, 10:10:54 PM »
This looks amazing. I'd love to get osc data in Unity.
I'm having trouble getting it to work though. Apparently no data is coming through. I'm sending data from processing to unity (a float) but i'm not getting any data in unity...
Has anyone tested it on the latest version of unity?

bicycler

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Can playmaker support OSC? like touchosc?
« Reply #22 on: May 09, 2013, 08:52:40 AM »
hey there, I also get the same problem, the correct values show up in the debug section of the PMOSC.sc, but nothing in the "get osc float", anybody can help? thanks


hey,

thanks for your implementation!
i tried to set it up, getting 3 floats from VDMX5 (lo, mid, hi) to unity over OSC.
the correct values show up in the debug section of the PMOSC.cs,
but the playmaker actions (get osc float) don't seem to be able to get the values.
(i'm on unity4 and pm 1.5.3)
any ideas? thanks.

Drakon

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Can playmaker support OSC? like touchosc?
« Reply #23 on: May 23, 2013, 08:19:41 AM »
Can't wait to try it out! Any youtube clips of it  connecting with an Daw like Reaktor or VJ apps - Touch FTE, Max/Msp?