Custom colors

Hi,

I would like to ask how to change, replace or add extra colors for current standard ones?

1 Like

The following is an extract from the old newsgroup where @pascal explains how to customise the color dialog. Its a good idea to save the default file as a back-up in case you want to return to the original and I’m not sure if your custom file will be over written during updates.

This extract is for V4, V5 has changed the file name from colors_1033.txt to colors.txt and you’ll find it in the support file:

Quote -

To define your own color palette, customize the
colors_.txt file in the Rhino Support folder.

(e.g. colors_1033.txt for English)

If the colors_.txt file contains more than one color
definition, the internal color list is replaced with the colors
extracted from this file.

The “;” or “//” characters can be used as comments either at the
beginning of a line or after the color definition.

MyColorName1,105,105,105

MyColorName2,0,0,0

MyColorName3,255,60,0

End quote

I just tried this and here is a screenshot:

3 Likes

Hi Brian,

This is very good, thanks for your help.

I have another question to use the “real name” of the color except of “Other” appears on the panel. Or add some extra for the standard 8 colors (White, Black, Red, Yellow… Magenta). Can I add some extra colors for the standard ones?

1 Like

Sorry, that’s beyond my knowledge, but I would not expect the drop-down menu to be user customised. Perhaps someone can confirm this.

Hi OnRender- currently the color list in the drop-down is fixed… you do not get to change it.

-Pascal

Thanks for your answer,

That would be great to be customizable, Color with Name can be another ID for the type of objects (independent from layer colors).

I would use them to identify Room types on hatch ( eg. Residential, Recreation, Lobby or anything).

1 Like

Added to the bugtracker as http://mcneel.myjetbrains.com/youtrack/issue/RH-20993
This link is not yet available for public viewing.

2 Likes

Hi Brian,

I’m actually working with rhino 6 and I’n not finding the colors.txt file you mentioned.
Could you help me to find it out?

This is a seven year old thread… :grimacing:

The colors.txt file is located here in V6:

C:\Users\<your user name>\AppData\Roaming\McNeel\Rhinoceros\6.0\Localization\<your language>\Support

2 Likes

just find it out. thank you!

Ok…I find and it works. however I can not directly add some “my colors” on the enclosed tab modifing the txt color. I’d like to avoid to go every time in " other" colors .Do you have any advice for this!?Untitled-1

2 Likes

Don’t think you can via Properties - I think those are hard coded.

There are a few other solutions, the easiest is maybe to set up a custom toolbar that has some hard-coded custom colors, that way it’s one click.

1 Like

Color picker?

Bumping this old thread to include a colors.txt file that I made a while ago and had to refer back here to reinstall. Enjoy.

colors.txt (299 Bytes)

2 Likes

Note that Rhino reverted itsef to the standard colors.txt by the next day, which also happened previously. Today I tried making colors.txt read-only.

Any chances this will be implemented one day?

1 Like

Hi -

RH-20993 is still open on the list but with 4 requests in 10 years, it’s not something I would be waiting for…
-wim

I should have re-read the thread before replying. I reckon this is the solution then, unless anyone has any other ideas?

I support that idea.
It would be very useful to be able to configure color by the user without going every time to the “Other” tab.

1 Like

When I went to try this, I learned pretty quickly that there aren’t a lot of, or really any, color operations available as Rhino commands afaict.

image


However, the following does work. I’ve about maxed out my Python here, but it would be nice not to have to make sixteen scripts nor sixteen toolbar buttons.

import rhinoscriptsyntax as rs

white = (255,255,255)
lightgray = (230,230,230)
mediumgray = (190,190,190)
darkgray = (105,105,105)
black = (0,0,0)

fire = (255,0,0)
earth = (0,127,0)
air = (63,63,255)
water = (0,127,255)

berry = (235,0,117)
orange = (237,118,48)
lemon = (253,208,28)
lime = (111,202,33)
turquoise = (13,160,209)
grape = (127,127,255)
eggplant = (73,73,165)

currentlayer = rs.CurrentLayer()

rs.LayerColor(currentlayer, white)