Surface mode: Difference between revisions
Jump to navigation
Jump to search
m (→Syntax) |
No edit summary |
||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
Sets how PyMOL draws the surface. | Sets how PyMOL draws the surface. The default, [[surface_mode]]=0 does not include the heteroatoms within the surface; setting it to 1, does include them. See the example images. | ||
<gallery caption="Surface Mode Examples" heights="175px" widths="175px"> | |||
Image:sm0.png|[[surface_mode]] set to 0, the default. The galactose (blue) is not considered part of the surface. | |||
Image:sm1.png|[[surface_mode]] set to 1 -- now including heteroatoms. The galactose and all heteroatoms (blue) are now considered part of the surface and colored blue. | |||
</gallery> | |||
== Examples == | |||
<source lang="python"> | |||
# make the above images, or something like them | |||
fetch 2v72 | |||
color wheat | |||
color marine, het | |||
zoom het and not resn HOH | |||
hide | |||
as surface, 2v72 | |||
# ray 800,600 | |||
# default | |||
set surface_mode, 0 | |||
# non default | |||
set surface_mode, 1 | |||
</source> | |||
== Syntax == | == Syntax == |
Revision as of 13:48, 21 August 2008
Overview
Sets how PyMOL draws the surface. The default, surface_mode=0 does not include the heteroatoms within the surface; setting it to 1, does include them. See the example images.
surface_mode set to 0, the default. The galactose (blue) is not considered part of the surface.
surface_mode set to 1 -- now including heteroatoms. The galactose and all heteroatoms (blue) are now considered part of the surface and colored blue.
Examples
# make the above images, or something like them
fetch 2v72
color wheat
color marine, het
zoom het and not resn HOH
hide
as surface, 2v72
# ray 800,600
# default
set surface_mode, 0
# non default
set surface_mode, 1
Syntax
set surface_mode, int
where int is in the range of 0 to 4.
0 - default mode
1 - force inclusion of HET atoms