Access default Rhino colours


#1

Hello,

Rhino has it’s plain old layer colour selector with named colours.

Is there any way to access these default colours in Grasshopper?

I want to generate new layers with Human, but use the “stock” colours from Rhino. I’d prefer not to manally grab all the the RGB colours and plug them back in to an RGB colour component.

Ideas?

Dan


#2

There is a file you can read.


#3

This reads colors.txt and outputs an RGB color: colors.txt.gh (2.4 KB)


(David Rutten) #4

You can just type those names in a panel and plug them into a colour parameter.


#5

Easy peasy!

Thanks David and Marcus.

Daniel


#6

David is right. I have changed my colors.txt. So my ‘Default Colors’ are different… And the colors you can use in a panel are not read from that file, but are probably(?) these.


(David Rutten) #7

Yeah, it’s the standard X11 palette. I don’t know who designed the palette that Rhino uses, but it seems to be a more consistent one.