maxmsp creation of widgets?

Home Forums Control maxmsp creation of widgets?

This topic contains 1 reply, has 1 voice, and was last updated by  newty 4 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #93321

    newty
    Member

    Hi

    Im trying to create a xy widget from maxmsp over osc with the following code.

    This works fine:

    /control/addWidget “{  ‘name’: ‘XY1’,  ‘type’: ‘MultiTouchXY’,  ‘x’: .12, ‘y’: 0.43, ‘width’: .37, ‘height’: .5,}”

     

    However, I cant seem to add an oscManager command in the ontouchend part. Like this

     

    /control/addWidget “{  ‘name’: ‘XY1’,  ‘type’: ‘MultiTouchXY’,  ‘x’: .12, ‘y’: 0.43, ‘width’: .37, ‘height’: .5, ontouchend: oscManager.sendOSC(“/XY1/z”, “ff”, 0, 0);}”

    Ive tried escaping the chars in oscManager, but nothing seems to work.

    Can someone confirm/deny whether it is possibile to contain these scripts within the OSC commands from maxmsp? It seems that max is having difficulty with the quotes.

    • This topic was modified 4 years, 1 month ago by  newty.
    #93323

    newty
    Member

    It seems that I can send scripts such as this:

    if(this.value == this.max) { control.showToolbar(); } else { control.hideToolbar(); }

    But I cant send scripts that have quotes in them like this

    ontouchend: oscManager.sendOSC(“/XY1/z”, “ff”, 0, 0);}”

    Anyone know why this is?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

This work is licensed under GPL - 2009 | Powered by Wordpress using a heavily modified version of the theme aav1