This is a read-only mirror of pymolwiki.org
Difference between revisions of "Rename"
Jump to navigation
Jump to search
m (5 revisions) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
− | + | '''rename''' creates new atom names which are unique within residues. | |
− | + | ||
− | |||
===USAGE=== | ===USAGE=== | ||
− | + | ====CURRENT==== | |
− | + | <source lang="python"> | |
− | + | rename object-name [ ,force ] | |
− | + | force = 0 or 1 (default: 0) | |
− | + | </source> | |
− | + | ||
− | + | ====PROPOSED==== | |
− | + | <source lang="python"> | |
− | + | rename object-or-selection,force | |
+ | </source> | ||
+ | |||
===PYMOL API=== | ===PYMOL API=== | ||
− | + | ====CURRENT==== | |
− | + | <source lang="python"> | |
− | + | cmd.rename( string object-name, int force ) | |
− | + | </source> | |
− | + | ||
− | + | ====PROPOSED==== | |
− | + | <source lang="python"> | |
+ | cmd.rename( string object-or-selection, int force ) | ||
+ | </source> | ||
+ | |||
===NOTES=== | ===NOTES=== | ||
− | + | To regerate only some atom names in a molecule, first clear them with an "alter (sele),name=''" commmand, then use "rename" | |
− | + | ||
− | |||
− | |||
===SEE ALSO=== | ===SEE ALSO=== | ||
− | + | [[alter]] | |
− | + | ||
+ | Or for rename an object | ||
+ | [[set_name]] | ||
− | [[Category:Commands| | + | [[Category:Commands|Rename]] |
Latest revision as of 03:08, 28 March 2014
rename creates new atom names which are unique within residues.
USAGE
CURRENT
rename object-name [ ,force ]
force = 0 or 1 (default: 0)
PROPOSED
rename object-or-selection,force
PYMOL API
CURRENT
cmd.rename( string object-name, int force )
PROPOSED
cmd.rename( string object-or-selection, int force )
NOTES
To regerate only some atom names in a molecule, first clear them with an "alter (sele),name=" commmand, then use "rename"
SEE ALSO
Or for rename an object set_name