This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
elfin8er's profile picture

Computercraft With Osc

Started by elfin8er, 17 September 2013 - 04:18 PM
elfin8er #1
Posted 17 September 2013 - 06:18 PM
This seems pretty advanced, but what I'm trying to do is connect to and from Computercraft with an OSC controller such as TouchOSC. So my guess is that I'd probably have to send PHP requests when ever a button was pressed on TouchOSC, that would have information such as what button was pressed. The PHP script would then have to safe information to a save file. Computercraft would get that save file every few ticks, and check for changes. If there's a change, Computercraft would run a PHP script that would put the save file back to it's default values. Then, I want to be able to get input from Computercraft and display it on TouchOSC. Doesn't sound like the best way of doing things, but as far as I know, PHP is the only way Computercraft can communicate to the outside world. Any other suggestions?

Edit: it seems like a python script may be the way to go. I'd imagine there's a python module for OSC.
elfin8er #2
Posted 17 September 2013 - 09:38 PM
I can't for the life of me figure out how to send and receive OSC messages in Python. Has anybody ever been able to do it?