Color messages


    Jul 20 2017 | 1:44 pm
    Hey folks,
    I have issues generating messages to dynamically change object colors (e.g. panels). I used to drag the respective color row from the inspector to the patcher and ended up with a nice message including the RGB color values. Since Max7 I get a attrui object which appears to be absolutely useless for these kinds of operations. I tried working around with the getattr object couldn't get it to work with the bgfillcolor attribute of a panel. Is there a secret functionality in the attrui system I just don't get? My solution at the moment is having Max6 open in the background or a website which provides me RGB numbers to generate the messages when I do that kind of stuff...
    Is there a quick and easy way to do this simple operation in Max7. Can I copy the RGB values of a selected color from somewhere else in the inspector? best dominikk

    • Jul 21 2017 | 6:16 am
      Hold the alt key when you drag from the inspector. This will open a contextual menu which will give you the options of a message with the variable ($1, $2, etc) or to create a message with the current values (your RGB numbers)
      Hope it is useful :)
    • Jul 21 2017 | 7:41 am
      Aaah, perfect! Basically the old behavior, great. I can't believe I never tried that having struggled with this issue for quite a while now... Thanks!
    • Sep 21 2021 | 9:21 am
      Use getattr bgfillcolor_color