Changes between Version 9 and Version 10 of ChimeraAnimationState


Ignore:
Timestamp:
Jan 4, 2011, 3:44:18 PM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraAnimationState

    v9 v10  
    8282}}}
    8383
    84 === Atom Representations ===
     84=== Atoms ===
     85
     86{{{
     87#!python
     88atomSelections = chimera.selection.currentAtoms()
     89anAtom = chimera.openModels.list(modelTypes=[chimera.Molecule])[0].atoms[0]
     90}}}
     91
     92==== Color ====
     93
     94{{{
     95#!python
     96molecules = chimera.openModels.list(modelTypes=[chimera.Molecule])
     97for m in molecules:
     98    for a in m.atoms:
     99        print a.color
     100}}}
     101
     102
     103==== Representations ====
    85104
    86105Each atom in a molecule has a drawMode attribute, with possible values: 0 = 'dot', 1 = 'sphere', 2 = 'endcap', 3 = 'ball'.  These values can be compared with the equivalent 'enum' values in chimera.Atom, i.e.:
     
    104123    for a in m.atoms:
    105124        print a.drawMode == chimera.Atom.Sphere
    106 
    107 atomSelections = chimera.selection.currentAtoms()
    108 anAtom = chimera.openModels.list(modelTypes=[chimera.Molecule])[0].atoms[0]
    109125}}}
    110126