Get Color Indices

From PyMOLWiki
Revision as of 23:33, 10 October 2005 by Inchoate (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

get_color_indices will retrieve the RGB values for colors.

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.