This is a read-only mirror of pymolwiki.org

Difference between revisions of "Clip"

From PyMOL Wiki
Jump to navigation Jump to search
 
m (7 revisions)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===DESCRIPTION===
+
 
+
'''clip''' alters the near and far clipping planes
  "clip" alters the near and far clipping planes
+
 
 
 
===USAGE===
 
===USAGE===
   
+
  clip {near|far|move|slab|atoms}, distance [,selection [,state ]]
  clip {near|far|move|slab|atoms}, distance [,selection [,state ]]
+
 
 
 
===EXAMPLES===
 
===EXAMPLES===
   
+
  clip near, -5          # moves near plane away from you by 5 A
  clip near, -5          # moves near plane away from you by 5 A
+
clip far, 10            # moves far plane towards you by 10 A
  clip far, 10            # moves far plane towards you by 10 A
+
clip move, -5          # moves the slab away from you by 5 A
  clip move, -5          # moves the slab away from you by 5 A
+
clip slab, 20          # sets slab thickness to 20 A
  clip slab, 20          # sets slab thickness to 20 A
+
clip slab, 10, resi 11  # clip 10 A slab about residue 11
  clip slab, 10, resi 11  # clip 10 A slab about residue 11
+
  clip atoms, 5, pept    # clip atoms in "pept" with a 5 A buffer
   
+
                        # about their current camera positions
  clip atoms, 5, pept    # clip atoms in "pept" with a 5 A buffer
 
                          # about their current camera positions
 
 
 
==PYMOL API==
 
==PYMOL API==
<source lang="python">
+
<source lang="python">
  cmd.clip( string mode, float distance, string selection = None)
+
cmd.clip( string mode, float distance, string selection = None)
</source>
+
</source>
 +
 
 
==SEE ALSO==
 
==SEE ALSO==
+
*[[Zoom]]
  [[Cmd zoom]], [[Cmd reset]]
+
*[[Reset]]
  
[[Category:Commands|clip]]
+
[[Category:Commands|Clip]]
 +
[[Category:States|Clip]]
 +
[[Category:View Module|Clip]]

Latest revision as of 01:21, 28 March 2014

clip alters the near and far clipping planes

USAGE

clip {near|far|move|slab|atoms}, distance [,selection [,state ]]

EXAMPLES

clip near, -5           # moves near plane away from you by 5 A
clip far, 10            # moves far plane towards you by 10 A
clip move, -5           # moves the slab away from you by 5 A
clip slab, 20           # sets slab thickness to 20 A
clip slab, 10, resi 11  # clip 10 A slab about residue 11
clip atoms, 5, pept     # clip atoms in "pept" with a 5 A buffer
                        # about their current camera positions

PYMOL API

cmd.clip( string mode, float distance, string selection = None)

SEE ALSO