<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Matrix_Copy</id>
	<title>Matrix Copy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Matrix_Copy"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;action=history"/>
	<updated>2026-04-23T05:02:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6947&amp;oldid=prev</id>
		<title>Pyadmin: 7 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6947&amp;oldid=prev"/>
		<updated>2014-03-28T01:53:14Z</updated>

		<summary type="html">&lt;p&gt;7 revisions&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:53, 28 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6946&amp;oldid=prev</id>
		<title>Speleo3: ARGUMENTS</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6946&amp;oldid=prev"/>
		<updated>2011-09-13T08:17:13Z</updated>

		<summary type="html">&lt;p&gt;ARGUMENTS&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Matrix_copy]] copies the [[Object_Matrix|object matrix]] from one object to another.&lt;br /&gt;
&lt;br /&gt;
This command is often used after a protein structure alignment to bring other related objects into the same frame of reference.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
matrix_copy source_name, target_name&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* source_name = string: name of object to take matrix from&lt;br /&gt;
* target_name = string: name(s) of object(s) to copy matrix to&lt;br /&gt;
* source_mode = integer: 0: raw coordinates, 1: object TTT matrix, 2: state matrix, 3: camera matrix transformation {default: -1: [[matrix_mode]] setting}&lt;br /&gt;
* target_mode = integer: (see source_mode)&lt;br /&gt;
* source_state = integer: object state {default: 1}&lt;br /&gt;
* target_state = integer: object state {default: 1}&lt;br /&gt;
* target_undo = 1/0: ??? {default: 1}&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
Here's a practical example. We grab two proteins and their density maps. We then align one to the other and then use matrix_copy to move over the density map:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# fetch two proteins and their maps&lt;br /&gt;
&lt;br /&gt;
fetch 1rx1 3dau, async=0&lt;br /&gt;
fetch 1rx1 3dau, type=2fofc, async=0&lt;br /&gt;
&lt;br /&gt;
# align them proteins&lt;br /&gt;
&lt;br /&gt;
align 1rx1, 3dau&lt;br /&gt;
&lt;br /&gt;
# copy 1rx1's matrix to 1rx1_2fofc&lt;br /&gt;
# it's density map&lt;br /&gt;
&lt;br /&gt;
matrix_copy 1rx1, 1rx1_2fofc&lt;br /&gt;
&lt;br /&gt;
# show the result&lt;br /&gt;
&lt;br /&gt;
enable *&lt;br /&gt;
show extent, *2fofc&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# load two molecules&lt;br /&gt;
load mol1.pdb&lt;br /&gt;
load mol2.pdb&lt;br /&gt;
&lt;br /&gt;
# load their maps&lt;br /&gt;
load map1.ccp4&lt;br /&gt;
load map2.ccp4&lt;br /&gt;
&lt;br /&gt;
# align the two molecules&lt;br /&gt;
align mol2////CA, mol1////CA&lt;br /&gt;
&lt;br /&gt;
# copy mol2's map to mol2&lt;br /&gt;
matrix_copy mol2, map2&lt;br /&gt;
&lt;br /&gt;
# show the isomesh&lt;br /&gt;
isomesh mesh1, map1&lt;br /&gt;
isomesh mesh2, map2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
[[Object_Matrix| Object Matrix]] [[Matrix_reset]], [[align]], [[fit]], and [[pair_fit]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Matrix copy]]&lt;br /&gt;
[[Category:Structure_Alignment|Matrix copy]]&lt;/div&gt;</summary>
		<author><name>Speleo3</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6944&amp;oldid=prev</id>
		<title>Karo at 11:11, 7 September 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6944&amp;oldid=prev"/>
		<updated>2010-09-07T11:11:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Matrix_copy]] copies the [[Object_Matrix|object matrix]] from one object to another.&lt;br /&gt;
&lt;br /&gt;
This command is often used after a protein structure alignment to bring other related objects into the same frame of reference.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
matrix_copy source_name, target_name&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# load two molecules&lt;br /&gt;
load mol1.pdb&lt;br /&gt;
load mol2.pdb&lt;br /&gt;
&lt;br /&gt;
# load their maps&lt;br /&gt;
load map1.ccp4&lt;br /&gt;
load map2.ccp4&lt;br /&gt;
&lt;br /&gt;
# align the two molecules&lt;br /&gt;
align mol2////CA, mol1////CA&lt;br /&gt;
&lt;br /&gt;
# copy mol2's map to mol2&lt;br /&gt;
matrix_copy mol2, map2&lt;br /&gt;
&lt;br /&gt;
# show the isomesh&lt;br /&gt;
isomesh mesh1, map1&lt;br /&gt;
isomesh mesh2, map2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
[[Object_Matrix| Object Matrix]] [[Matrix_reset]], [[align]], [[fit]], and [[pair_fit]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Matrix copy]]&lt;br /&gt;
[[Category:Structure_Alignment|Matrix copy]]&lt;/div&gt;</summary>
		<author><name>Karo</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6942&amp;oldid=prev</id>
		<title>Vinnyrose: moved Matrix copy to Matrix Copy</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6942&amp;oldid=prev"/>
		<updated>2009-06-20T14:35:26Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/Matrix_copy&quot; class=&quot;mw-redirect&quot; title=&quot;Matrix copy&quot;&gt;Matrix copy&lt;/a&gt; to &lt;a href=&quot;/index.php/Matrix_Copy&quot; title=&quot;Matrix Copy&quot;&gt;Matrix Copy&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:35, 20 June 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Vinnyrose</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6941&amp;oldid=prev</id>
		<title>Vinnyrose at 13:35, 20 June 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Matrix_Copy&amp;diff=6941&amp;oldid=prev"/>
		<updated>2009-06-20T13:35:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Overview =&lt;br /&gt;
[[Matrix_copy]] copies a transformation matrix from one object to another.&lt;br /&gt;
&lt;br /&gt;
This command is often used after a protein structure alignment to bring other related objects into the same frame of reference.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
matrix_copy source_name, target_name&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# load two molecules&lt;br /&gt;
load mol1.pdb&lt;br /&gt;
load mol2.pdb&lt;br /&gt;
&lt;br /&gt;
# load their maps&lt;br /&gt;
load map1.ccp4&lt;br /&gt;
load map2.ccp4&lt;br /&gt;
&lt;br /&gt;
# align the two molecules&lt;br /&gt;
align mol2////CA, mol1////CA&lt;br /&gt;
&lt;br /&gt;
# copy mol2's map to mol2&lt;br /&gt;
matrix_copy mol2, map2&lt;br /&gt;
&lt;br /&gt;
# show the isomesh&lt;br /&gt;
isomesh mesh1, map1&lt;br /&gt;
isomesh mesh2, map2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
[[Matrix_reset]], [[align]], [[fit]], and [[pair_fit]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Matrix copy]]&lt;br /&gt;
[[Category:Structure_Alignment|Matrix copy]]&lt;/div&gt;</summary>
		<author><name>Vinnyrose</name></author>
	</entry>
</feed>