Show displays atom and bond representations for certain selections.
show show reprentation [,object] show reprentation [,(selection)] show (selection)
cmd.show( string representation="", string selection="" )
# show the backbone using lines. show lines,(name ca or name c or name n)
# show the ribbon representation for all objects show ribbon
# show all hetero atoms as spheres show spheres, het
# show only polar hydrogens hide everything, ele h show lines, ele h and neighbor (ele n+o) # hide nonpolar hydrogens hide (h. and (e. c extend 1))
The above code hides all representations of nonpolar hydrogens, including surface representations, resulting in broken surface representations. It might be better to remove the nonpolar hydrogens instead:
# show only polar hydrogens hide everything, ele h show lines, ele h and neighbor (ele n+o) # remove nonpolar hydrogens remove (h. and (e. c extend 1))
selection can be an object name.
show alone will turn on lines and nonbonded for all bonds.