This is a read-only mirror of pymolwiki.org

Difference between revisions of "Show as"

From PyMOL Wiki
Jump to navigation Jump to search
m
 
m (5 revisions)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
== DESCRIPTION ==
+
[[show_as]] turns on and off atom and bond [[:Category:Representations|representations]].
 +
 
 +
=Details=
 +
 
 +
The available representations are the usual:
 +
 
 
(History: Python 2.6 came out with the keyword [[as]] which is also a PyMOL keyword.  So, we had to change the PyMOL-named keyword to [[show_as]].)
 
(History: Python 2.6 came out with the keyword [[as]] which is also a PyMOL keyword.  So, we had to change the PyMOL-named keyword to [[show_as]].)
  
[[show_as]] turns on and off atom and bond [[:Category:Representations|representations]], where the available representations are the usual:
 
 
*[[lines]]
 
*[[lines]]
 
*[[spheres]]
 
*[[spheres]]
Line 51: Line 55:
  
 
[[Category:Commands|Show As]]
 
[[Category:Commands|Show As]]
 +
[[Category:View Module|Show As]]

Latest revision as of 03:53, 28 March 2014

show_as turns on and off atom and bond representations.

Details

The available representations are the usual:

(History: Python 2.6 came out with the keyword as which is also a PyMOL keyword. So, we had to change the PyMOL-named keyword to show_as.)

USAGE

show_as representation [, selection ]

ARGUMENTS

  • representation = lines, spheres, mesh, ribbon, cartoon, sticks, dots, surface, labels, extent, nonbonded, nb_spheres, slice, extent, slice, dashes, angles, dihedrals, cgo, cell, callback, everything
  • selection = string {default: all}

EXAMPLES

 
# show the backbone as lines
show_as lines, name ca or name c or name n

# show everything as a ribbon
show_as ribbon

PYMOL API

 
cmd.show_as(string representation, string selection)

NOTES

  • selection can be an object name
  • as alone will turn on lines and nonbonded and hide everything else.

SEE ALSO

show, hide, enable, disable, All PyMOL Representations

References

  • PyMOL Source code