Jump to content

Show as

From PyMOL Wiki
Revision as of 18:46, 17 November 2009 by Inchoate (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

show_as turns on and off atom and bond representations.

Details

[edit]

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

[edit]
show_as representation [, selection ]

ARGUMENTS

[edit]
  • 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

[edit]
 
# 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

[edit]
 
cmd.show_as(string representation, string selection)

NOTES

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

SEE ALSO

[edit]

show, hide, enable, disable, All PyMOL Representations

References

[edit]
  • PyMOL Source code