Get Color Indices: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
[[Category:Commands|get_color_indices]] | [[Category:Commands|get_color_indices]] | ||
[[Category:Coloring]] | |||
Revision as of 17:57, 28 August 2008
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.