Dear List (and Geoffrey),

Finally, I went through the python module depencies and installed Avogadro 1.1..

On 02/17/2014 10:51 PM, Geoffrey Hutchison wrote:
.. that is the first atom in the system.  How do I change its color?
Colors in Avogadro 1.0.x are defined by a color plugin, not the atom. In Avogadro 1.1.x, there's a new property:


Ok, In the python console (and in Avogadro 1.1.x) I try:


>>> import Avogadro


>>> Avogadro.molecule.atoms[0]


>>> Avogadro.molecule.atoms[0].setCustomColorName("blue")

Traceback (most recent call last):

File "<string>", line 1, in <module>

AttributeError: 'Atom' object has no attribute 'setCustomColorName'



Playing around in ipython ..


In [15]: import Avogadro

In [16]:

In [16]: mol=Avogadro.MoleculeFile.readMolecule("")

In [17]:

In [17]: dir(mol.atoms[0])