Get color index

From PyMOLWiki
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_index in combination with get_color_tuple will retrieve the RGB values for a single color.

PyMOL>print cmd.get_color_index('black')
1
PyMOL>print cmd.get_color_tuple(1)
(0.0, 0.0, 0.0)


See Also