This is a read-only mirror of pymolwiki.org

Difference between revisions of "List Colors"

From PyMOL Wiki
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 02:16, 28 March 2014

#
# 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