List Colors: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
</source> | </source> | ||
[[Category: | [[Category:Script_Library|List Colors]] | ||
[[Category:Coloring]] | |||
[[Category:ObjSel_Scripts]] |
Latest revision as of 07:35, 30 April 2009
#
# 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