Difference between revisions of "As"

From PyMOLWiki
Jump to navigation Jump to search
(Redirected page to Show as)
 
Line 1: Line 1:
== DESCRIPTION ==
+
#REDIRECT [[Show_as]]
[[as]] turns on and off atom and bond [[:Category:Representations|representations]], where the available representations are the usual:
 
*[[lines]]
 
*[[spheres]]
 
*[[mesh]]
 
*[[ribbon]]
 
*[[cartoon]]
 
*[[sticks]]
 
*[[dots]]
 
*[[surface]]
 
*[[labels]]
 
*[[extent]]
 
*[[nonbonded]]
 
*[[nb_spheres]]
 
*[[slice]]
 
 
=== [[As]] in Python 2.6+ ===
 
PyMOL has used the [[As]] keyword for years.  Python recently reserved the [[As]] keyword for themselves and so PyMOL had to change the name of this command.  The new command name is [[Show_as]].  For this, nothing else has changed, just the name of the command.
 
 
 
 
 
== USAGE ==
 
<source lang="python">
 
as representation [, selection ]
 
</source>
 
 
== 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 ==
 
<source lang="python">
 
# show the backbone as lines
 
as lines, name ca or name c or name n
 
 
 
# show everything as a ribbon
 
as ribbon
 
</source>
 
== PYMOL API ==
 
<source lang="python">
 
cmd.show_as(string representation, string selection)
 
</source>
 
 
== 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]], [[:Category:Representations|All PyMOL Representations]], [[show_as]]
 
 
 
== References ==
 
* PyMOL Source code
 
 
 
 
 
[[Category:Commands|As]]
 
[[Category:Representations]]
 

Latest revision as of 18:11, 17 April 2009

Redirect to: