send Constants, Pages using maxmsp

Home Forums Control send Constants, Pages using maxmsp

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

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #93324

    newty
    Member

    Hi,

    I can add normal widgets through maxmsp, such as:

    {‘name’: ‘page1Btn’,’type’: ‘Button’,’bounds’: [0,.9,.2,.05], ‘label’: ‘1’,’mode’: ‘contact’,’ontouchstart’: ‘control.changePage(0);’,’stroke’: ‘#aaa’,}

    However, how do I add this to a specific page?

    Ive tried adding it into constants like so:

    /control/runScript “constants = [{‘name’: ‘page1Btn’,’type’: ‘Button’,’bounds’: [0,.9,.2,.05], ‘label’: ‘1’,’mode’: ‘contact’,’ontouchstart’: ‘control.changePage(0);’,’stroke’: ‘#aaa’,}];”

    But it doesnt seem to work?

    Is there any way to specify a specific page for a widget to be entered into using maxmsp, and also is it possible to enter information into the “constants” variable?

    Cheers

Viewing 1 post (of 1 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