Mark,

print cmd.get_color_indices() will retrieve the color indices

print cmd.get_color_tuple(index-number) will retrieve individual RGB
components.

set_color color-name, [r,b,g] 

will create a new color that will appear in the GUI list.  From the
open-source GUI you can use the "add" button in the color list viewer.
In MacPyMOL, enter the new name into the MacPyMOL color editor window,
set the RGBs, and then click Apply.

Cheers,
Warren

--
Warren L. DeLano, Ph.D.                     
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213           
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834     
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com      
 

> -----Original Message-----
> From: pymol-users-ad...@lists.sourceforge.net 
> [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of 
> Mark Mayer
> Sent: Monday, October 10, 2005 2:04 PM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] RGB values for preset colors in PyMol
> 
> Hi,
> 
> Is it possible to get a listing of the RGB values for the 
> present color palette used in PyMol? Related to this anyone 
> know how to add user defined colors to the GUI interface.
> 
> Thanks
> --
> Mark Mayer Ph.D.
> LCMN NICHD NIH DHHS
> Bldg 35, Room 3B 1002 MSC 3712
> 35 Lincoln Drive
> Bethesda MD 20892 3712
> Phone: 301-496-9346 (office); 301-496-9347 (lab); FAX 
> 301-496-2396 Lab web site: http://mayerlab.nichd.nih.gov
> 
> Send packages, Fedex and anything requiring a signature to:
> 
> Bldg 35, Room 3B 1004
> 35 Lincoln Drive
> Bethesda MD 20892
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, 
> discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
> 
> 
> 
> 

Reply via email to