I’m trying to work out how the scripting environment works.
I’m using v1.03
I can see from the wiki how to iterate over atoms and bonds in the molecule
but how do I access the painter device? Suppose I would like to change the
colour of a particular atom or bond, how can I do this or is this not
possible from the python Terminal?
Also I think some of the wiki might be out of date? Here: (
http://avogadro.openmolecules.net/wiki/Category:Scripting) it says we can
access atomic positions via:
But when I try Avogadro.molecule.atomPos(0)from the terminal I get an
attribute error. By contrast Avogadro.molecule.atoms.pos works