[Chimera-users] saving color palette

Elaine Meng meng at cgl.ucsf.edu
Mon Nov 26 10:22:05 PST 2007


Hi Jeff,
If you are saving colors in the Color Editor, it can be called up  
from under Tools... Utilities as well as by clicking color wells.

An alternative to using the Color Editor palette (whose colors are  
saved in your preferences file, as Tom said) is to have various  
Chimera command scripts that define a bunch of colors with the  
"colordef" command.  I have used this approach several times.  You  
can have all your favorites in one file, or have separate command  
files for separate sets of definitions.  Simply opening the Chimera  
command file will define the colors.  With the Preferences, Midas  
section (only present when the Command Line is shown) you can also  
designate any of these files to be read automatically the first time  
you show the Command Line during a use of Chimera.

http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/colordef.html
http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/preferences.html#Midas

Example file contents (these just have RGB values; you could also use  
RGBA to define transparent colors):
-----
colordef dgreen  0.0 0.5 0.1
colordef orange  1.0 0.4 0.0
colordef ocher   0.9 0.5 0.0
colordef pink    1.0 0.5 0.7
colordef purple  0.3 0.0 0.5
colordef lpurple 0.7 0.4 0.9
colordef lilac   0.4 0.4 1.0
colordef lblue   0.0 0.5 1.0
colordef mblue   0.0 0.25 1.0
colordef lgreen  0.4 1.0 0.5
colordef lgray   0.8 0.8 0.8
colordef dgray   0.3 0.3 0.3
colordef hotpink 0.9 0.0 0.5
colordef brown   0.6 0.2 0.1
colordef seagreen 0.0 0.65 0.5
colordef dseagreen 0.0 0.4 0.3
colordef flesh   0.9 0.65 0.5
colordef tan     0.65 0.45 0.25
colordef sky     0.6 0.8 1.0
-----
Elaine C. Meng, Ph.D.                          meng at cgl.ucsf.edu
UCSF Computer Graphics Lab and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
                      http://www.cgl.ucsf.edu/home/meng/index.html




On Nov 25, 2007, at 7:06 PM, William Jeffrey Triffo wrote:

> is there a way I can save the color palette to a file?
>
> I realize it seems to be saved as a user setting somewhere because it
> always pops up again in the same configuration as the previous  
> session,
> but I would like to be able to back it up intentionally if possible.
> Also, is it possible to save/load various palettes?
>
> thanks,
>
> -Jeff
>
> -- 
>
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users




More information about the Chimera-users mailing list