<?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=Centerofmass</id>
	<title>Centerofmass - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Centerofmass"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Centerofmass&amp;action=history"/>
	<updated>2026-04-21T22:05:52Z</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=Centerofmass&amp;diff=13634&amp;oldid=prev</id>
		<title>Cchem: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Centerofmass&amp;diff=13634&amp;oldid=prev"/>
		<updated>2016-10-17T00:06:56Z</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 00:06, 17 October 2016&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>Cchem</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Centerofmass&amp;diff=13633&amp;oldid=prev</id>
		<title>Speleo3: created</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Centerofmass&amp;diff=13633&amp;oldid=prev"/>
		<updated>2016-10-12T19:42:05Z</updated>

		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The [[centerofmass]] command calculates the center of mass for an atom selection. It considers atom mass and occupancy.&lt;br /&gt;
&lt;br /&gt;
''New in PyMOL 1.7.2. See the [[center_of_mass]] script for older PyMOL versions.''&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
 centerofmass [ selection [, state ]]&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* '''selection''' = str: atom selection {default: all}&lt;br /&gt;
* '''state''' = int: object state, -1 for current state, 0 for all states {default: -1}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 PyMOL&amp;gt; fetch 1ubq, async=0&lt;br /&gt;
 PyMOL&amp;gt; centerofmass&lt;br /&gt;
  Center of Mass: [  30.004,  28.522,  14.701]&lt;br /&gt;
&lt;br /&gt;
== Python API ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; inline&amp;gt;cmd.centerofmass()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
returns a list of 3 floats.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[get_extent]]&lt;br /&gt;
* [[center of mass]] (script)&lt;br /&gt;
* [[COM]] (script)&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Speleo3</name></author>
	</entry>
</feed>