This is a read-only mirror of pymolwiki.org

Difference between revisions of "Category:Uncategorized"

From PyMOL Wiki
Jump to navigation Jump to search
 
Line 4: Line 4:
 
<source lang="python">
 
<source lang="python">
 
cmd.set_key('F1',lambda :cmd.show('sticks'))
 
cmd.set_key('F1',lambda :cmd.show('sticks'))
 +
</source>
 +
 +
==Coloring Surface with Electrostatic Potential==
 +
You have to load the potential data by Delphi or some other program like AMBER version 9:
 +
<source lang="python">
 +
load sample.pdb, molecule
 +
load sample.delphi, potential
 +
show surface, molecule
 +
ramp_new level, potential, [-7,0,7]
 +
set surface_color, level, molecule
 
</source>
 
</source>

Revision as of 03:04, 12 December 2005

Alter key bindings

It's not GUI, but you could simply bind a function key such as F1 to a command:

cmd.set_key('F1',lambda :cmd.show('sticks'))

Coloring Surface with Electrostatic Potential

You have to load the potential data by Delphi or some other program like AMBER version 9:

load sample.pdb, molecule
load sample.delphi, potential
show surface, molecule
ramp_new level, potential, [-7,0,7]
set surface_color, level, molecule

This category currently contains no pages or media.