Re: [PyMOL] Getting information fron selected objects

2010-01-21 Thread Daniel Seeliger
Hi Phil, one option to get access to the coordinates is using the chempy model of a given selection ( named "(sele)" if you clicked it). m = cmd.get_model("(sele)") the chempy model contains a list of atom objects which contain most properties you might need. for atom in m.atom: print at

Re: [PyMOL] Getting information fron selected objects

2010-01-20 Thread Jason Vertrees
Phil, The answers to your questions lie in the "iterate," "iterate_state," "alter," and "alter_state" commands. The PyMOLWiki has extensive documentation on these commands (http://pymolwiki.org/index.php/Iterate). Once you select something with the mouse you can get information using iterate/alt

[PyMOL] Getting information fron selected objects

2010-01-20 Thread Phil Payne Local
I am writing a Pymol plugin, in which I need to extract, manipulate, and replace the coordinates of selected atoms. Are there examples out there I could use as a prototype? For starters, what command(s) do I use to get the name strings of residues that I've selected with mouse clicks. I would li