<?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=Get_object_matrix</id>
	<title>Get object matrix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Get_object_matrix"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Get_object_matrix&amp;action=history"/>
	<updated>2026-04-23T04:53:24Z</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=Get_object_matrix&amp;diff=7995&amp;oldid=prev</id>
		<title>Pyadmin: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Get_object_matrix&amp;diff=7995&amp;oldid=prev"/>
		<updated>2014-03-28T02:16:26Z</updated>

		<summary type="html">&lt;p&gt;1 revision&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 02:16, 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=Get_object_matrix&amp;diff=7994&amp;oldid=prev</id>
		<title>Karo at 11:08, 7 September 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Get_object_matrix&amp;diff=7994&amp;oldid=prev"/>
		<updated>2010-09-07T11:08:53Z</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;
Pymol stores a transformation matrix for each object relative to it's initial position when loaded in.  '''get_object_matrix''' will return a list of floats with that matrix for a named object.&lt;br /&gt;
&lt;br /&gt;
The matrix is 4X4, with the upper left 3x3 forming a rotation matrix, the fourth column and row representing pre-rotation and post-rotation translation vectors respectively, and the 16th element always being 1.0.&lt;br /&gt;
&lt;br /&gt;
According the pymol source code, this is an &amp;quot;unsupported command&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.get_object_matrix(object, state=1)&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;
cmd.load(&amp;quot;prot1.pdb&amp;quot;, &amp;quot;prot1&amp;quot;)&lt;br /&gt;
cmd.load(&amp;quot;prot2.pdb&amp;quot;, &amp;quot;prot2&amp;quot;)&lt;br /&gt;
cmd.super(&amp;quot;prot1&amp;quot;, &amp;quot;prot2&amp;quot;) #align prot1 to prot 2&lt;br /&gt;
transformation = cmd.get_object_matrix(&amp;quot;prot1&amp;quot;) #translation and rotation to align the two proteins&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[Object_Matrix]] [[Transform_selection]] [[Transform_odb]] [[Matrix_copy]] &lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Get Object Matrix]]&lt;/div&gt;</summary>
		<author><name>Karo</name></author>
	</entry>
</feed>