Re: [PyMOL] How to write the select residue around in script

2006-09-16 Thread Tsjerk Wassenaar
Hi Dong, The second argument to cmd.select has to be a string giving the selection _exactly_ as you would give your second argument on the command line (but then quoted). Try cmd.select(name, all within 3.2 of (resi 2 and chain A)) Cheers, Tsjerk On 9/15/06, XUESONG DONG

[PyMOL] How to write the select residue around in script

2006-09-15 Thread XUESONG DONG
Hi, Is there a script sample to select the resi dues around an object. I am trying to write a script, but it doesnt work. from pymol import cmd from pymol iport stored cmd.select(name, resi 2 and chain A, around 3.2) stored.list=[] cmd.iterate(name, stored.list.append((resi, resn))) print