Hi everyone, we are looking for a way to implement the Dulux specifier range in rhino, so that we can pick colors from a list and make materials based on those colors. The grasshopper part is easy, so we am reaching out for anyone who knows how to get a spreadsheet with dulux color names and also their corresponding rgb values. Once we have this we can make some custom definitions to create paint materials based on this.
As we are sometimes testing up to 50 paint colors in rhino, it would help to be able to automate the process.
Quickly parsing this sanple XML file into Excel gives the associated RGB values, however they’re 5 digits long instead of the expected 3. Any idea what the extra ones are for? If this can be worked out it’d simply be a scraping mission to compile all the colours into a single doc.
Hi, divide them by 257. Why? I don’t know… It could also be 256, truncated. This would make more sense, e.g. to get a higher precision for the rgb values as 0 to 255 (a range of 256) offers
I think I’ve managed to get a workflow working piggybacking off the Archicad colour group files. It’s just a matter of going through each colour group.
They are 16-bit RGB values: in 16 bit codes each colour component is represented by a value between 0 and 65535 (as compared to the better known 8-bit codes which range between 0 and 255).
So, taking @christopher.ho’s two values for R for example: 49087/65535 = 74.9% and 191/255 = 74.9%.
Hi @djzelenko and everyone for the help and suggestions.
If there is a spreadsheet that would be really good, also if you have a method to compile it from the xml file that would be really good to know also - we had a look through the archicad xml files on the dulux page and i saw those color values but i found it difficult to scrape the data from it. It would be good to know the process as they do update colors etc.
thanks @jeremy5 also for providing that info regarding the 16-bit rgb values.
Once I have the color data we can make some grasshopper definitions to help others who want to do similar things.