Difference between revisions of "Copy"

From PyMOLWiki
Jump to: navigation, search
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
===DESCRIPTION===
+
'''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
 
 
 
===USAGE===
 
===USAGE===
 
<source lang="python">
 
<source lang="python">
  copy target, source
+
copy target, source
+
</source>
  copy target = source        # (DEPRECATED)
+
 
</source>
 
 
===PYMOL API===
 
===PYMOL API===
 
<source lang="python">
 
<source lang="python">
  cmd.copy(string target,string source)
+
cmd.copy(string target,string source)
</source>  
+
</source>
  
 
===SEE ALSO===
 
===SEE ALSO===
+
* [[Create|create]]
  [[:Category:Commands Cmd_create|create]]
 
  
 
===User Comments/Examples===
 
===User Comments/Examples===
  
[[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>
 +
 
 +
[[Category:Commands|Copy]]

Latest revision as of 15:03, 14 November 2013

copy creates a new object that is an identical copy of an existing object

USAGE

copy target, source

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")