Hi JD,
In addition to what Eric said, you'll probably need to get the atom
objects in Python. A previous message on chimera-users provides some
python code for that.
http://www.cgl.ucsf.edu/pipermail/chimera-users/2008-July/002823.html
Tom