Changes between Version 9 and Version 10 of ChimeraAnimationState
- Timestamp:
- Jan 4, 2011, 3:44:18 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ChimeraAnimationState
v9 v10 82 82 }}} 83 83 84 === Atom Representations === 84 === Atoms === 85 86 {{{ 87 #!python 88 atomSelections = chimera.selection.currentAtoms() 89 anAtom = chimera.openModels.list(modelTypes=[chimera.Molecule])[0].atoms[0] 90 }}} 91 92 ==== Color ==== 93 94 {{{ 95 #!python 96 molecules = chimera.openModels.list(modelTypes=[chimera.Molecule]) 97 for m in molecules: 98 for a in m.atoms: 99 print a.color 100 }}} 101 102 103 ==== Representations ==== 85 104 86 105 Each 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.: … … 104 123 for a in m.atoms: 105 124 print a.drawMode == chimera.Atom.Sphere 106 107 atomSelections = chimera.selection.currentAtoms()108 anAtom = chimera.openModels.list(modelTypes=[chimera.Molecule])[0].atoms[0]109 125 }}} 110 126
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)