Colour picker out OSX format

Post your questions here and we'll all try to help.
Post Reply
fred_dev
Met Resolume in a bar the other day
Posts: 1
Joined: Fri Feb 22, 2019 15:02

Colour picker out OSX format

Post by fred_dev »

Does anyone know the data format and types that the colour picker uses over OSC? When I analyse the message I see the type is 'r'. I want to send the info to my won software made with openframeworks, and I cannot decide this message. I can use the RGB sliders to send a colour, but the RGB values do not update when the colour picker is used. It would be great to be able to access this data easily. I am guessing it communicates fine between resolume systems, but talking to other things is also nice.

Cheers

Fred

Zoltán
Team Resolume
Posts: 4575
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Colour picker out OSX format

Post by Zoltán »

You can find the supported OSC type tags here: https://resolume.com/support/en/osc#type-tags-and-range
OSC color values have the type tag r followed by an unsigned integer representing a 32 bit RGBA color. You can write a color as an int by bitshifting its RGBA values.
Theatre sound engineer, photographer, programmer, aka ravensc.
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu
VJ footage: https://goo.gl/58oHy7

edwin
Team Resolume
Posts: 1148
Joined: Thu Oct 07, 2004 10:40

Re: Colour picker out OSX format

Post by edwin »

I just checked and the openframeworks OSC implementation supports Color messages.
ofxOscArgRgbaColor
https://openframeworks.cc///documentati ... RgbaColor/

Post Reply