Spectrum states

From PyMOLWiki
Revision as of 10:16, 20 December 2011 by Speleo3 (talk | contribs) (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Type Python Module
Download spectrum_states.py
Author(s) Takanori Nakane and Thomas Holder
License BSD-2-Clause
This code has been put under version control in the project Pymol-script-repo

spectrum_states colors each state in a multi-state object different. Colors are along a user defined palette, just like with the spectrumany command.

Usage

spectrum_states [ selection [, representations [, color_list ]]]

Example

import spectrum_states

# fetch a morph from molmovdb.org
load http://molmovdb.org/uploads/284066-6299/movie.pdb.gz

# show ribbon in all states
as ribbon
set all_states

# color states from dark gray to red
spectrum_states *, ribbon, gray20 orange red

See Also