This is a read-only mirror of pymolwiki.org

Difference between revisions of "Surface carve selection"

From PyMOL Wiki
Jump to navigation Jump to search
m (2 revisions)
 
(better examples)
Line 1: Line 1:
= Overview =
+
With the '''surface_carve_selection''' and '''surface_carve_cutoff''' settings, the visibility of a molecular [[surface]] can be limited to the proximity of an atom selection.
'''[[surface_carve_selection]]''' sets the selection for [[surface_carve_cutoff]] from which the cutoff hides the triangles in the surface representation.
 
  
= Syntax =
+
Unlike when [[show|showing]] [[surface]] representation only for a subset of atoms, the visibility is controlled on the vertex (surface point) level, not the atom level.
<source lang="python">
 
# set the center point of the surface carving
 
set surface_carve_selection, selectionName
 
</source>
 
  
= Examples =
+
The value of '''surface_carve_selection''' must be a [[Named Atom Selections|named selection]] (created with [[select]]), it '''cannot''' be a selection expression (e.g. "chain A" won't work).
<source lang="python">
 
# set the selection
 
set surface_carve_selection, lig
 
  
# set the cutoff; hide surface >4.5 Ang from lig
+
== Example ==
set surface_carve_cutoff, 4.5
 
</source>
 
  
= See Also =
+
Visibility control on the vertex level. Hide surface points which are more than 5 Angstrom away from '''carvesele''':
[[surface_carve_cutoff]]
+
 
 +
fetch 1rx1, async=0
 +
as cartoon
 +
select carvesele, organic
 +
set surface_carve_selection, carvesele
 +
set surface_carve_cutoff, 5
 +
show surface
 +
show sticks, carvesele
 +
 
 +
Compare to visibility control on the atom level. Hide surface for atoms which are more than 5 Angstrom away from '''carvesele'''.
 +
 
 +
fetch 1rx1, async=0
 +
as cartoon
 +
select carvesele, organic
 +
show surface, all within 5 of carvesele
 +
show sticks, carvesele
 +
 
 +
== See Also ==
 +
 
 +
* [[surface_proximity]]
 +
* [[surface_smooth_edges]]
  
 
[[Category:Settings|Surface_carve_selection]]
 
[[Category:Settings|Surface_carve_selection]]

Revision as of 20:43, 24 February 2017

With the surface_carve_selection and surface_carve_cutoff settings, the visibility of a molecular surface can be limited to the proximity of an atom selection.

Unlike when showing surface representation only for a subset of atoms, the visibility is controlled on the vertex (surface point) level, not the atom level.

The value of surface_carve_selection must be a named selection (created with select), it cannot be a selection expression (e.g. "chain A" won't work).

Example

Visibility control on the vertex level. Hide surface points which are more than 5 Angstrom away from carvesele:

fetch 1rx1, async=0
as cartoon
select carvesele, organic
set surface_carve_selection, carvesele
set surface_carve_cutoff, 5
show surface
show sticks, carvesele

Compare to visibility control on the atom level. Hide surface for atoms which are more than 5 Angstrom away from carvesele.

fetch 1rx1, async=0
as cartoon
select carvesele, organic
show surface, all within 5 of carvesele
show sticks, carvesele

See Also