“rename” creates new atom names which are unique within residues.
rename selection [, force ]
alter | cmd.rename | commands
To regerate only some atom names in a molecule, first clear them with an “alter (sele),name=''” commmand, then use “rename”