Hi James, the "beyond" operator yields true only if the considered atom pair distance is beyond the threshold in ALL states. To remove atoms which are beyond threshold in ANY state, try this:
python for i in range(cmd.count_states()): cmd.select('tmp', 'solvent beyond 5 of polymer', state=i+1) cmd.remove('tmp') python end Hope that helps. Cheers, Thomas On 06/28/2012 09:01 AM, James Starlight wrote: > Hi Thomas, > > I wounder to know what corrections should I add to the below selection > in case of multi state object > > remove solvent beyond 3.5 of polymer > > e.g I'm working with the MD trajectory saved in PDB format. I've decided > to deleate all solvent from all 100 frames simultaneously but the above > command works fine only in case of 1 state object . > > James -- Thomas Holder MPI for Developmental Biology Spemannstr. 35 D-72076 Tübingen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net