Grasshopper

algorithmic modeling for Rhino

Hi,

I've had an Android smartphone for a few weeks now and I was looking for some osc solution. So I searched the store and found two.

One is Touch OSC. It's very nice, but as you may know it's a bit of a hack to push it to an android device, and you can't use labels, which is a very bad point!

...

I won't buy an Iphone!

The other is Control OSC. It looks rougher, but it has a lot of advantages to me.

+ Game of Life included!

+ you can use and update labels :))

+ Has a nice muti touch widget unfeatured in touch osc

+ You can script the interface using java script manipulation in gh, stream it to your dropbox and update in one "tap", as follows

Does anyone have experience with scripting interfaces for this software? I'm stuck already. I know nothing of java script to begin with. As you can see I managed to format the labels but the osc message I could not find a way, it stays untouched.

Just in case someone knows better, here are my "objects" (I said that right?). The userXXX are replaced in GH.

{
    "name":"userName",
    "type":"Slider",
    "x":(xPadding + .11), "y": yPadding,
    "width":.82, "height":.082,
    "color":"userColor",
    "min":userMin,
    "max":userMax,
    "ontouchmove" : "var roundedvalue = this.value.toFixed(userFix); LbluserName2.changeValue(roundedvalue)",
    "onvaluechange": "oscManager.sendOSC('/userName', 'f', this.value.toFixed(userFix))",
},

{
    "name":"LbluserName1",
    "type":"Label",
    "x":xPadding, "y": yPadding,
    "width":.1, "height":.05,
    "color":"userColor",
    "value": "userName"
},

{
    "name":"LbluserName2",
    "type":"Label",
    "x":xPadding, "y":  (yPadding + 0.05),
    "width":.1, "height":.05,
    "address":"/userName",
    "color":"userColor",
    "value": 0
},

Views: 821

Replies to This Discussion

Seems like a nice app.  I looked through the JSON, but I did not have the time to go through it in its entirety...

Hi Luis,

Thanks for your interest.

If you want to give it a try, here's my first draft.

Attachments:

That's cool!  Will check it out later!

Hi there,

Things are going well... I found a way to pass the digits info. It's not pretty. I could still use some help here.

I'm making progress on the interface building (thanks to hdt, great great tools! Especially the treefrog part is really helpfull).

So now I can design the interface in Rhino, up to 8 pages. For now I just have sliders, buttons, toggles and labels. Multi sliders are the next thing, and then I'll have a little bit of work to add MD sliders and multi MD(aka MultiTouchXY). And Joystick too maybe, but I'm not sure for what kind of use...

It's good to have the remote control panel again... I know only a few dinosaurs like me remember this cool cool feature of version .... was it 0.4?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service