Re: [PyMOL] how to change atom name

2011-09-27 Thread Thomas Holder
Hi Lina, atom properties can be changed with the "alter" command. It takes a selection (the atoms that should be modified) and an assignment expression in python syntax. Example: alter name H01, name="H22" It's important to quote strings in the assignment expression! More details and examples

Re: [PyMOL] how to change atom name

2011-09-06 Thread lina
On Tue, Sep 6, 2011 at 11:39 PM, Marius Retegan wrote: > Google search lead me to this > http://www.pymolwiki.org/index.php/Atom_name_wildcard > > I think this should to the job in you case > > alter all, name=string.replace(name,"H0","H") Thanks, it works. before I googled, might used poor keyw

Re: [PyMOL] how to change atom name

2011-09-06 Thread Marius Retegan
Google search lead me to this http://www.pymolwiki.org/index.php/Atom_name_wildcard I think this should to the job in you case alter all, name=string.replace(name,"H0","H") Best regards, Marius -- Dr. Marius Retegan Postdoctoral Fellow Dé