On Sunday 24 July 2005 05:42, yi zhang wrote: > cmd.symexp('sym', 'obj', 'obj',10 ) > > of course, I can manually save each symmetry-related > molecule to *.pdb file by clicking save molecule > button, but how can I write a script to save all of > them or part of them? the symmetry-related objects > are not appendable.
I have used something like this in the past: #-------------- # get symmetry mates objs = [ n for n in cmd.get_names() if n[0:3]=="sym" ] for obj in objs: if cmd.get_type(obj)!="object:molecule": print "Something's wrong!" else: cmd.save(obj+".pdb",obj) #-------------- Hope this helps, -- Lieven Buts Ultrastructure Laboratory Vrije Universiteit Brussel