<?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=Origin</id>
	<title>Origin - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Origin"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Origin&amp;action=history"/>
	<updated>2026-07-04T23:00:25Z</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=Origin&amp;diff=7138&amp;oldid=prev</id>
		<title>Pyadmin: 9 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Origin&amp;diff=7138&amp;oldid=prev"/>
		<updated>2014-03-28T02:00:27Z</updated>

		<summary type="html">&lt;p&gt;9 revisions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''origin''' sets the center of rotation about a selection.  If an object name is specified, it can be used to set the center of rotation for the object's [[Object_Matrix|TTT matrix]].&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
origin selection [, object [,position, [, state]]]&lt;br /&gt;
origin (selection)&lt;br /&gt;
origin position=[1.0,2.0,3.0]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.origin( string object-or-selection )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
* state = 0 (default) use all coordinate states&lt;br /&gt;
* state = -1 use only coordinates for the current state&lt;br /&gt;
* state &amp;gt; 0  use coordinates for a specific state&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Zoom]], [[Orient]], [[Reset]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example===&lt;br /&gt;
This example puts the camera 'inside' a protein near the ligand and turns the camera 360 degrees about that location.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load $TUT/1hpv.pdb&lt;br /&gt;
&lt;br /&gt;
set field_of_view, 45&lt;br /&gt;
&lt;br /&gt;
zoom organic&lt;br /&gt;
orient organic&lt;br /&gt;
show stick, polymer&lt;br /&gt;
show surface&lt;br /&gt;
set surface_color, white&lt;br /&gt;
set transparency, 0.5&lt;br /&gt;
clip slab, 30&lt;br /&gt;
set line_width, 5&lt;br /&gt;
&lt;br /&gt;
cmd.move(&amp;quot;z&amp;quot;,-cmd.get_view()[11])&lt;br /&gt;
&lt;br /&gt;
python&lt;br /&gt;
def spin():&lt;br /&gt;
   from pymol import cmd&lt;br /&gt;
   for x in range(360):&lt;br /&gt;
      cmd.move(&amp;quot;z&amp;quot;,cmd.get_view()[11])&lt;br /&gt;
      cmd.turn(&amp;quot;y&amp;quot;,1)&lt;br /&gt;
      cmd.move(&amp;quot;z&amp;quot;,-cmd.get_view()[11])&lt;br /&gt;
      cmd.refresh()&lt;br /&gt;
&lt;br /&gt;
threading.Thread(target=spin).start()&lt;br /&gt;
python end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Origin]]&lt;br /&gt;
[[Category:States|Origin]]&lt;br /&gt;
[[Category:View Module|Origin]]&lt;/div&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Origin&amp;diff=7135&amp;oldid=prev</id>
		<title>Karo at 11:30, 7 September 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Origin&amp;diff=7135&amp;oldid=prev"/>
		<updated>2010-09-07T11:30:10Z</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;'''origin''' sets the center of rotation about a selection.  If an object name is specified, it can be used to set the center of rotation for the object's [[Object_Matrix|TTT matrix]].&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
origin selection [, object [,position, [, state]]]&lt;br /&gt;
origin (selection)&lt;br /&gt;
origin position=[1.0,2.0,3.0]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.origin( string object-or-selection )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
* state = 0 (default) use all coordinate states&lt;br /&gt;
* state = -1 use only coordinates for the current state&lt;br /&gt;
* state &amp;gt; 0  use coordinates for a specific state&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Zoom]], [[Orient]], [[Reset]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Origin]]&lt;br /&gt;
[[Category:States|Origin]]&lt;br /&gt;
[[Category:View Module|Origin]]&lt;/div&gt;</summary>
		<author><name>Karo</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Origin&amp;diff=7133&amp;oldid=prev</id>
		<title>Vinnyrose at 15:06, 20 June 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Origin&amp;diff=7133&amp;oldid=prev"/>
		<updated>2009-06-20T15:06:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:06, 20 June 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===SEE ALSO===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===SEE ALSO===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Cmd zoom&lt;/del&gt;]], [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Cmd orient&lt;/del&gt;]], [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Cmd reset&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Zoom&lt;/ins&gt;]], [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Orient&lt;/ins&gt;]], [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Reset&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Commands|Origin]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Commands|Origin]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:States|Origin]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:States|Origin]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:View Module|Origin]]&lt;/ins&gt;&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=Origin&amp;diff=7132&amp;oldid=prev</id>
		<title>Vinnyrose at 14:17, 20 June 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Origin&amp;diff=7132&amp;oldid=prev"/>
		<updated>2009-06-20T14:17:34Z</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;===DESCRIPTION===&lt;br /&gt;
'''origin''' sets the center of rotation about a selection.  If an object name is specified, it can be used to set the center of rotation for the object's TTT matrix.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
origin selection [, object [,position, [, state]]]&lt;br /&gt;
origin (selection)&lt;br /&gt;
origin position=[1.0,2.0,3.0]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
cmd.origin( string object-or-selection )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
* state = 0 (default) use all coordinate states&lt;br /&gt;
* state = -1 use only coordinates for the current state&lt;br /&gt;
* state &amp;gt; 0  use coordinates for a specific state&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Cmd zoom]], [[Cmd orient]], [[Cmd reset]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Origin]]&lt;br /&gt;
[[Category:States|Origin]]&lt;/div&gt;</summary>
		<author><name>Vinnyrose</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Origin&amp;diff=7129&amp;oldid=prev</id>
		<title>Tree at 05:28, 23 February 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Origin&amp;diff=7129&amp;oldid=prev"/>
		<updated>2005-02-23T05:28:00Z</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;===DESCRIPTION===&lt;br /&gt;
 &lt;br /&gt;
   &amp;quot;origin&amp;quot; sets the center of rotation about a selection.&lt;br /&gt;
   If an object name is specified, it can be used to set&lt;br /&gt;
   the center of rotation for the object's TTT matrix.&lt;br /&gt;
 &lt;br /&gt;
===USAGE===&lt;br /&gt;
 &lt;br /&gt;
   origin selection [, object [,position, [, state]]]&lt;br /&gt;
   origin (selection)&lt;br /&gt;
   origin position=[1.0,2.0,3.0]&lt;br /&gt;
 &lt;br /&gt;
===PYMOL API===&lt;br /&gt;
 &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
   cmd.origin( string object-or-selection )&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
 &lt;br /&gt;
   state = 0 (default) use all coordinate states&lt;br /&gt;
   state = -1 use only coordinates for the current state&lt;br /&gt;
   state &amp;gt; 0  use coordinates for a specific state&lt;br /&gt;
 &lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
 &lt;br /&gt;
   [[Cmd zoom]], [[Cmd orient]], [[Cmd reset]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|origin]]&lt;/div&gt;</summary>
		<author><name>Tree</name></author>
	</entry>
</feed>