This is a read-only mirror of pymolwiki.org
Difference between revisions of "Copy"
Jump to navigation
Jump to search
m |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | ||
'''copy''' creates a new object that is an identical copy of an existing object | '''copy''' creates a new object that is an identical copy of an existing object | ||
| Line 18: | Line 18: | ||
===User Comments/Examples=== | ===User Comments/Examples=== | ||
[[Category:Commands|Copy]] | [[Category:Commands|Copy]] | ||
| + | |||
| + | |||
| + | |||
| + | <source lang="python"> | ||
| + | ## will copy the object "trna" into six new objects with a number suffic | ||
| + | s = range(6) | ||
| + | for x in s: | ||
| + | cmd.copy("trna%s" %x, "trna") | ||
| + | </source> | ||
Revision as of 23:57, 24 February 2010
copy creates a new object that is an identical copy of an existing object
USAGE
copy target, source
copy target = source # (DEPRECATED)
PYMOL API
cmd.copy(string target,string source)
SEE ALSO
User Comments/Examples
## will copy the object "trna" into six new objects with a number suffic
s = range(6)
for x in s:
cmd.copy("trna%s" %x, "trna")