ubutton behavior – state change
I want to use a ubutton to cover a part of my GUI so that when the system isn’t playing you can mess with controls, but when the play button is hit the controls are frozen under the ubutton.
Is there I was I can send the ubutton a message that will tick the ignore click?
The ubutton, and indeed just about every UI object in Max, has an ‘ignoreclick’ attribute that can be set or cleared.
----------begin_max5_patcher---------- 964.3oc2X00aZCCE8Y3WQVzdjUE+QbH6spJj1zl1j55aSUUAvPcG3fRLccqZ +2W70FJgFHITR1JOPht1FmiO9buWe8ic63NL9Adpqy6c9tSmNO1sSGnIcCcr 1cbmG8vnYQovvbUwSmNi61yz0hDdJWphThX4MI7QJyTEROyqmCwmne4Ye3bs 8OcqX7XtTORzpoIRM5Vgb5FSAhByAl1Gd4s545YQLFvS7v6dGhsFOQIQy4Jd xMbYzvLblMDOaexkyExYbU5le4rFiWp1tUSSpesfa.iqPlAqq0c9mtc0O5UQ 5ZNOMMZ5Z9Rwe.Vethox3rE6Lwne37VT0nyffWNcFf0u5COQ82AcFrBOShkJ YFgBccdhHZlaQjItdjo65Opd9SE+F5.kgoiHAmxUkvpXKsZHiCjVYv+i5AuH 3y72Cs5eZPqNW74Odwmb9vfKG3b0Wctbv2FbUYTc+PfeLhvCjpwlHAHFncY9 6UBSO4352TFGiCMd3ufftXLrAYBRf71OESdEQwihmOOiyJgBQjPsCLl5UHEN IY5PHgxYd6QlRX54f3ALouOLg6JuEplTXwYs7Nd7zxgKUpXYo7DxjatXdZib aUym1RVLCkw1AYgWgpaijiimLA5oFzDcWJsgQxot8d5s92AmvWx+YFZelurx YniW1u0630IlGgAuXA68PPdGEwTorjlY5k2r0BFd9WtpnHh0IUMpOnxPTz9B tE9JJ1VSn3P93xUbAmDBtsRMrl+JPmMSH4ihWJUatkWmrBHSfNSMMDRwzJ6+ sjB4K4qNxnpT7F8Do1s5vKUoJL7qnPPaergcGWwloGhqPC1Qlr+oI5ADAt5a cuHvpR2ddhHMdYxnUeAK7cdZcMlmpDR3DTaLlfbi44RmwhTsK.vIEugTUzn+ RjRPCsDzLWLdQbFQYIDTe3Tsn.lofLXyLuk4jgHRfdfzM87OtqLbIqrvVkmK aWGQaU3fJCNrVCN5CmVN8PpoNzJuLUiPHf.Luk4VBvYoZ8MFMfNbKXW7ZiUu klEwglSMPg0h1nIfuWEjJ0MBgOwryr409rkUKDgPWxX4pNu10KnrPV5qIrMw C4kFkn3rCjPhw0CNjSdK6EGXUI3lZ22uJ69nZt5XvUDQMWTF1HoyagCM2Pow qErZhUGsIVcF2wFCyUJIIt8z+rpfm16rZgG+DIV8J1yTxIx3+kyJmbsg14qT f3VimqhqygpBMkODsXw87jT6TB.Iqho6hSzlrdfoPZLgYzMgeuX03CfVhRxJ hRkUA0xDSseOzm41U+c9S2+BVeNtS. -----------end_max5_patcher-----------
This type of question is asked so frequently that it’s probably worth my submitting the following pseudo-contribution to the "Did you know?" series.
Did you know that Max will help you set up messages to control attributes of objects? Select the object you want to control, and type Command-I (Control-I in Windows) to open the object’s Inspector window. Most of the object’s alterable traits shown in that Inspector window can also be controlled by a message in a Max patch. In the Inspector window, click on the name of the trait you want to control, drag that name into your Patcher window, and release it. You’ll be presented by a contextual pop-up menu offering to set up an object that will permit you to control that attribute in your patch. This trick is also a good way to learn the names of attributes that you might otherwise not know. Happy patching!
That’s exactly what I needed. I was aware of the attributes but I didn’t know about the drag to patcher thing.
Sorry about late reply.
Forums > MaxMSP