forming connection upon button click


    Apr 02 2009 | 5:20 pm
    I have two sliders, I want the output of one slider go into input of another slider i.e. lets say slider A controls slider B. But I only want this to form this connection when I click lets say some Button object. So my question , is there any object which can form a connection between two objects upon button click? I tried it with toggle but it does not function that way.
    Thank you,
    Dhruv

    • Apr 02 2009 | 5:41 pm
      Is this what you mean???
    • Apr 03 2009 | 12:07 am
      Sorry, I am a beginner , Can you tell me how to convert that code into objects?
      Thanks,
      Dhruv
    • Apr 03 2009 | 12:19 am
      Select and copy the text in your browser
      (including --------begin_max5_patcher---------- and -----------end_max5_patcher-----------)
      then switch to Max and select "New From Clipboard" under the FIle menu.
      -B
    • Apr 03 2009 | 1:12 am
      Dhruv wrote on Thu, 02 April 2009 12:20I have two sliders, I want the output of one slider go into input of another slider i.e. lets say slider A controls slider B. But I only want this to form this connection when I click lets say some Button object. So my question , is there any object which can form a connection between two objects upon button click? I tried it with toggle but it does not function that way.
      Thank you,
      Dhruv
      [gate] is the simplest and generally best way to control flow of commands/data. However Max also lets you do scripting of connections (and a lot more) as you described above. Generally you don't need to script things this way, gate will work fine, but there are occasions where scripting is helpful. This patch demonstrates both. The [thispatcher] help file is very detailed and will give you lots of ideas, especially about window control... it's great.
    • Apr 03 2009 | 3:48 am
      Thanks a lot, this really helped me a lot!
      Cheers,
      Dhruv