This is a read-only mirror of pymolwiki.org
Difference between revisions of "All states"
Jump to navigation
Jump to search
m |
|||
| Line 11: | Line 11: | ||
==Example== | ==Example== | ||
<source lang="python"> | <source lang="python"> | ||
| − | + | import urllib2 | |
| + | pdbCode = '1BRV' | ||
| + | pdbUrl = 'http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId='+pdbCode | ||
| + | pdbFile = urllib2.urlopen(pdbUrl) | ||
| + | pdbContent = pdbFile.read() | ||
| + | cmd.read_pdbstr(pdbContent, pdbCode) | ||
| + | |||
set all_states, on | set all_states, on | ||
</source> | </source> | ||
Revision as of 21:26, 14 September 2006
Overview
When set "on", this setting causes PyMOL to display all states or in NMR jargon: all the models in the ensemble. The 'default' behavior (OFF) can be overridden by placing the "set all_states, on" statement into your '.pymolrc' file, located in your login directory (under all flavors of unix).
Syntax
set all_states, on
set all_states, off
Example
import urllib2
pdbCode = '1BRV'
pdbUrl = 'http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId='+pdbCode
pdbFile = urllib2.urlopen(pdbUrl)
pdbContent = pdbFile.read()
cmd.read_pdbstr(pdbContent, pdbCode)
set all_states, on