Prevent RGB swatch from going to grayscale?
I have around 15 rgb swatches controlling various objects on screen. If a user uses the swatch and makes it white, saves the preset, then later recalls that preset…that swatch is now in total grayscale mode and I can’t choose colors…the only fix I have is to have a default preset that has each swatch a color…THEN they revert back to full color scale.
As a work-around you could include a [slider] or [flonum] hooked up to send the "saturation" value to the [swatch] and store this in the [preset] too. You could also use the second outlet to trigger the saturation value on recall, although this wouldn’t work if you are storing different values for each slot. Here is a comparison.
----------begin_max5_patcher---------- 779.3ocyXssiaBCD8YxWAB0GSiX7ELz252Q0pUjf2TpRLQ.Q61tZ+2q8.NP1 F13jkRxKfYXrmyYtRxqy7BVV7hrJv+a9+v2y60YddnHi.u1m8B1l9xpMoUnZ A6RUxMAyadytz5U+LWs9wR4p5lSgPoKBm6SfXyMdn8p+Cs6Y45UEaJJazFLu 9nKc5UTlIQ0fVIkE6UYxLinvVQp8ayUaj0U80SKrXesUpU0bbiAEK+0WoAFQ uMal4xbGItR9rduVlWKeotweTJ2IUY9VZcVOCjDYtkHP2TeOySEpZU5VIdte uLO8fe1AZB8Njp7+fGBPVbB1yrmZytq+8NYC.CB7e3JbLmKif0lPjb+lPPtI IDr17AwsMe.F67gRYkr9C3MkfoBTrN.BwLBVeh6.8XmHHFOHQrPxOHWg2NVv AC2H9wrz5TaOwCjrABKOJCTKqSWw7VbHLma0yFhaVsIuxXo2kT2r+Fu5osA4 xsQ3BBkP3wlUTdBqYUbDiCQtXR50XRNj.TNthqsDwrBh4rXlKljcMlDRhEgM FhZLDxbMGAZmIupb2m1TnglMOR+p7s5GMA7CUNC2YOIrqC23UHSrfIWYAS3A vb9paBevpBMYSwZfkop0WWs9VYUU5Z4+zDrJsdeYZcdgx+KfCyDQr6KvuYv7 kCWpqi3dOPXAOgCwhS3phF4Ng1L2yReJReHB6KFQFpUH8CSP5yDwvLYtMv++ o4NPXXyc1H2bmbezb2gd65V.19WPq2F6ozUvMBC.9.bnc1cCAX.SHFMDQuXD om9viCivwChDdn.WwZA34fU3hnO6LjgfEMjESSvoVQQ.AWQi4DZjKv51Lmo4 CFSf6wwLv87Xl1uzFn2CSYRl5oLsrucVynMj4hmwf1SWApd++3.hYi7iYYUw 9xU1y7v2C1A6LYUctBC+8ThcjN+LOKSp5+y91lmsqPOXnECC3xcERLGPDcRQ D3.hHSJhbIpASJhL0fmERhoERNE2RlVLQbASCE5faGlDSKj3t3lhl1PWjKXZ hSwi+LXxkXm9g2l8WvVgjDC -----------end_max5_patcher-----------
Yeah, guess I have to do that, thanks!
|marcoskohler wrote on Thu, 21 May 2009 17:24|
|I have around 15 rgb swatches controlling various objects on screen. If a user uses the swatch and makes it white, saves the preset, then later recalls that preset…that swatch is now in total grayscale mode and I can’t choose colors…the only fix I have is to have a default preset that has each swatch a color…THEN they revert back to full color scale.|
I’ve noticed this with swatch for a long time, and it’s kind of annoying. The saturation suggestion will work most of the time, but the swatch can still go grayscale when you don’t want it to… I don’t think there’s an order of operations for recalling presets? Though maybe it’s right-to-left, that could be good to know. Then you could be sure the saturation is set first, then the swatch, etc.
Could be a good feature request / "bug" to mention, since it doesn’t make much sense to go grayscale just for choosing white (or sending values close to 1.0 1.0 1.0 into the swatch). Plus I think it does it with very "black" values too.
Another workaround would be to use [suckah] and have it over a picture of a swatch, then preset the values that come out. But then you’d have to deal with showing where the preset was positioned over the swatch, if you want that feedback, which could be a pain. Though if you used a pictslider and a suckah this could work, the pictslider saves the position and the suckah sends out the RGB.
Regardless, the grayscaling behavior of swatch would be a nice fix, it would then behave as one would intuitively think it should.
yes it really is a bug… would be nice to have it fixed…
Not really a bug ‘cos the values are properly restored… but improved for the next incremental anyway. Thanks.
You’re right it is not a bug but as an interface object its behaviour is not very intuitive i guess.