Category:Uncategorized: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
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 22:04, 11 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.