| | 131 | === Molecules === |
| | 132 | |
| | 133 | Molecule models have some global attributes, like {{{display}}} and {{{color}}}, that can alter their appearance. Note that color properties will propagate into all elements of a molecule model (residues, atoms, bonds) that do not have any specific 'component' settings. Whenever a component (residue, atom, bond) has it's own color properties, they override the global molecule color properties. |
| | 134 | |
| | 135 | {{{ |
| | 136 | #!python |
| | 137 | >>> m.display |
| | 138 | True |
| | 139 | >>> m |
| | 140 | <_chimera.Molecule object at 0x4f464b8> |
| | 141 | >>> m.color.ambientDiffuse |
| | 142 | (1.0, 1.0, 1.0) |
| | 143 | >>> m.color.isTranslucent |
| | 144 | <built-in method isTranslucent of _chimera.MaterialColor object at 0x4f5a3a0> |
| | 145 | >>> m.color.isTranslucent() |
| | 146 | False |
| | 147 | >>> m.color.opacity |
| | 148 | 1.0 |
| | 149 | >>> m.color.opacity = 0.5 |
| | 150 | >>> m.color.opacity = 0.1 |
| | 151 | >>> |
| | 152 | }}} |
| | 153 | |