Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to use OSC

I now this sounds a little weird because I have made an AI already but I have been trying to work out OSC for over 2 hours now so can someone please help and paste example code at bottom


  • dave1707dave1707 Mod
    edited August 2019 Posts: 8,450

    @joaquin Here's an example. Put this code on both devices and run it. It will show the IP address of the device it's running on. Put the IP address in the code below for the other devices so each device knows it's IP address and the other devices address. Then run this on both devices, move your finger around and the sprite will move on the other device.

    PS. There is also some code on the forum where I can transfer projects from one iPad to the other. I haven't found it yet.

    function setup()
        host = osc.start()  -- address of this ipad
        print(host) = ""  -- put address of other ipad here
    function draw()
        sprite("Planet Cute:Character Horn Girl",x,y)
    function osc.listen(address, ...)
    function touched(t)
        if t.state==MOVING then
  • dave1707dave1707 Mod
    Posts: 8,450

    @joaquin Here's a link to code I wrote to transfer project from one iPad to another.
  • edited August 2019 Posts: 16


  • AnatolyAnatoly Mod
    edited September 2019 Posts: 889

    @dave1707 Do you know if you can have only one connection ( or can you have multiple OSCs running?

    Edit: I can think of switching to the needed port every time before sending an event, but I'm sure there was another way of doing so, can't find right now.

Sign In or Register to comment.