Forums > MaxMSP

Lemur: Change Color of Objects from MAX

June 12, 2013 | 9:25 pm

Can anyone tell me some useful way of changing colors of controllers on the Lemur App (iPad) in a meaningful way? Liine’s manual is terrible …
They say something about three values (float from 0. to 1.), but I found out it works with this kind of message via OSC:
/OBJECTNAME @color "integer" "integer", whereas I cannot see any changes with the first integer, but it is necessary to be send, as only the second one changes the color. However, it is a RGB number from 0 to 8.355.711. I don’t know how to do the math to get a color menu together to easily change the color in MAX. I tried the swap object, but without success … any hints are welcome!


June 13, 2013 | 4:32 am

this should work :

<code>

– Pasted Max Patch, click to expand. –

</code>


June 13, 2013 | 11:13 am

Mathieu, thank you so much! That did it. For lemur you just have to pack another integer (0 or any number) before the color number to make it work. As I said: I don’t know what the number is for, as I cannot see anything changing with different values.


June 13, 2013 | 12:33 pm

Edit: I found it in the menu of the Lemur now: the first integer is for the color of the background … But in the forums I found many entries, this was a mistake and the RGB value has to be set with three floats (R, G and B). This however only applies to the internal Lemur scripts … that is why I have asked them repeatedly to make more detailed documentation available for sending messages via OSC. But they insist, the manual is sufficient. Well, I will keep insisting, that it is NOT! :-)


June 13, 2013 | 1:55 pm

Hey, while on this topic, has anyone figured out an elegant way of sending an RGB matrix to lemur objects?

I’ve been unpacking/packing matrices and it gets really ugly…


June 13, 2013 | 2:33 pm

Thanks man! Didn’t know about the quotations …


Viewing 6 posts - 1 through 6 (of 6 total)