Hi All in one of my scripts I have a problem with getting a selection for a new molecule which is created from a copy of another which also have a selection. In the first one a selection is made of the user, but after creating a new molecule from the whole of the old, I cannot use the old selection directly. I could of course specify the selection in the script itself, but for interactive use of user-defined selections I've tried
stored.list=[] cmd.iterate(selection+ " & name ca","stored.list.append(resi)") print stored.list cmd.select("newsel","none") for resi in stored.list: print resi cmd.select("newsel", "newsel or ("molecule2" &resi %s)"%resi) Is there a more elegant and or robust way of doing this? I'm especially tired of the iterating through the list for each new molecule. Best Regards Esben ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited