Difference between revisions of "List Colors"

From PyMOLWiki
Jump to navigation Jump to search
m
Line 16: Line 16:
  
 
[[Category:Script_Library|List Colors]]
 
[[Category:Script_Library|List Colors]]
 +
[[Category:Coloring]]

Revision as of 16:44, 24 September 2008

#
# This is how to do it from the PyMOL command line or .pml script:
#
iterate all, print color

#! /usr/bin/python
#
# and this in a Python script
#
import pymol
pymol.color_list = []
cmd.iterate('all', 'pymol.color_list.append(color)')
print pymol.color_list