Slice

From PyMOLWiki
Revision as of 12:06, 16 March 2011 by DBorhani (talk | contribs) (Created page with "slice creates a slice object from a map object representations. == USAGE == <source lang="python"> slice name, map, [opacity, [resolution, [sta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

slice creates a slice object from a map object representations.

USAGE

slice name, map, [opacity, [resolution, [state, [source_state]]]]

ARGUMENTS

  • name = the name for the new slice object (string)
  • map = the name of the map object to use for computing the slice (string)
  • opacity = opacity of the new slice (default=1)
  • resolution = the number of pixels per sampling (default=5)
  • state = the state into which the object should be loaded (default=1; set state=0 to append new mesh as a new state)
  • source_state = the state of the map from which the object should be loaded (default=0)

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

Often mis-identified as "slice_map" in the help. [[slice] is the correct command.

SEE ALSO

isomesh, isodot, load

References

  • PyMOL Source code