Difference between revisions of "Hide"

From PyMOLWiki
Jump to navigation Jump to search
Line 27: Line 27:
 
===EXAMPLES===
 
===EXAMPLES===
 
<source lang="python">
 
<source lang="python">
 +
# hides all lines
 
hide lines,all
 
hide lines,all
 +
 +
# hides all ribbons
 
hide ribbon
 
hide ribbon
 +
 +
# hides sticks in protA and all residues that aren't in the range of 40-65
 +
hide sticks, protA and not i. 40-65
 
</source>
 
</source>
  

Revision as of 02:49, 23 February 2007

DESCRIPTION

hide conceals atom and bond representations for a certain selection.

The available representations are:

  • lines
  • spheres
  • mesh
  • ribbon
  • cartoon
  • sticks
  • dots
  • surface
  • labels
  • nonbonded
  • nb_spheres

USAGE

hide reprentation [,object]
hide reprentation [,(selection)]
hide (selection)

PYMOL API

cmd.hide( string representation="", string selection="")

EXAMPLES

# hides all lines
hide lines,all

# hides all ribbons
hide ribbon

# hides sticks in protA and all residues that aren't in the range of 40-65
hide sticks, protA and not i. 40-65

SEE ALSO

Cmd show, Cmd enable, Cmd disable