<?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=Distancetoatom</id>
	<title>Distancetoatom - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Distancetoatom"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Distancetoatom&amp;action=history"/>
	<updated>2026-04-04T12:22: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=Distancetoatom&amp;diff=12207&amp;oldid=prev</id>
		<title>Bell: 3 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12207&amp;oldid=prev"/>
		<updated>2014-11-26T15:24:25Z</updated>

		<summary type="html">&lt;p&gt;3 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 15:24, 26 November 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>Bell</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12206&amp;oldid=prev</id>
		<title>Sbliven: Fixing capitalization</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12206&amp;oldid=prev"/>
		<updated>2014-11-24T09:24:14Z</updated>

		<summary type="html">&lt;p&gt;Fixing capitalization&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 09:24, 24 November 2014&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-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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;'''distancetoatom''' prints all distances between a specified atom, coordinate or group selection center and all atoms within cutoff distance that are part of the selection.&amp;lt;br&amp;gt;&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;'''distancetoatom''' prints all distances between a specified atom, coordinate or group selection center and all atoms within cutoff distance that are part of the selection.&amp;lt;br&amp;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;div&gt;All coordinates and distances can be saved in a csv-style text file report and/or can be stored in a (custom) atom property, if defined.&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;All coordinates and distances can be saved in a csv-style text file report and/or can be stored in a (custom) atom property, if defined.&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;* For instruction on setting up plugin import see [[Git intro]] or [[Plugin &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;manager&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;* For instruction on setting up plugin import see [[Git intro]] or [[Plugin &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Manager&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;==Usage==&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;==Usage==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sbliven</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12205&amp;oldid=prev</id>
		<title>Andwar: typos</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12205&amp;oldid=prev"/>
		<updated>2014-07-13T11:09:01Z</updated>

		<summary type="html">&lt;p&gt;typos&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 11:09, 13 July 2014&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-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&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;==About distancetoatom==&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;==About distancetoatom==&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;'''distancetoatom''' prints all &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;distanced &lt;/del&gt;between a specified atom, coordinate or group selection center and all atoms within cutoff distance that are part of the selection.&amp;lt;br&amp;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;'''distancetoatom''' prints all &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;distances &lt;/ins&gt;between a specified atom, coordinate or group selection center and all atoms within cutoff distance that are part of the selection.&amp;lt;br&amp;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;div&gt;All coordinates and distances can be saved in a csv-style text file report and/or can be stored in a (custom) atom property, if defined.&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;All coordinates and distances can be saved in a csv-style text file report and/or can be stored in a (custom) atom property, if defined.&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;* For instruction on setting up plugin import see [[Git intro]] or [[Plugin manager]]&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;* For instruction on setting up plugin import see [[Git intro]] or [[Plugin manager]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andwar</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12204&amp;oldid=prev</id>
		<title>Andwar: created page for distancetoatoms</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Distancetoatom&amp;diff=12204&amp;oldid=prev"/>
		<updated>2014-07-13T10:42:55Z</updated>

		<summary type="html">&lt;p&gt;created page for distancetoatoms&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox script-repo&lt;br /&gt;
|type      = Python Module&lt;br /&gt;
|filename  = distancetoatom.py&lt;br /&gt;
|author    = [[User:Andwar|Andreas Warnecke]] and [[User:Jaredsampson|Jared Sampson]]&lt;br /&gt;
|license   = BSD-2-Clause&lt;br /&gt;
}}&lt;br /&gt;
[[Image:distancetoatom_0.png|right|300px|get distance to atoms within cutoff]]&lt;br /&gt;
&lt;br /&gt;
==About distancetoatom==&lt;br /&gt;
'''distancetoatom''' prints all distanced between a specified atom, coordinate or group selection center and all atoms within cutoff distance that are part of the selection.&amp;lt;br&amp;gt;&lt;br /&gt;
All coordinates and distances can be saved in a csv-style text file report and/or can be stored in a (custom) atom property, if defined.&lt;br /&gt;
* For instruction on setting up plugin import see [[Git intro]] or [[Plugin manager]]&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
{|-&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
    distancetoatom [ origin [, cutoff [, filename [, selection [, state [, property_name [, coordinates [, decimals [, sort [, quiet ]]]]]]]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;3;&amp;quot;|Arguments for distancetoatom&lt;br /&gt;
|- style=&amp;quot;text-align:center;&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Keyword&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| Default&lt;br /&gt;
! scope=&amp;quot;col&amp;quot;| What it does&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| origin &lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| pk1  &lt;br /&gt;
| &amp;quot;origin&amp;quot; defines the coordinates for the origin and can be:&lt;br /&gt;
1. a list with coordinates [x,y,z]&amp;lt;br&amp;gt;&lt;br /&gt;
2. a single atom selection string&amp;lt;br&amp;gt;&lt;br /&gt;
3. a multi-atom selection string (center will be used)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| cutoff&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| 10  &lt;br /&gt;
| &amp;quot;cutoff&amp;quot; defines the maximum distance, atoms further away are not considered&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| filename &lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| None&lt;br /&gt;
| &amp;quot;filename&amp;quot; is the name of a report file that will be created (optional). &lt;br /&gt;
set to e.g. 'report.txt' to create a report. This file is CSV style and can be imported into EXCEL.&amp;lt;br&amp;gt;&lt;br /&gt;
(omit or set to &amp;quot;&amp;quot;, None, 0 or False to disable)&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| selection&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| all&lt;br /&gt;
| only atoms within &amp;quot;selection&amp;quot; (and cutoff distance) will be used for calculation&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| state &lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| 0&lt;br /&gt;
| &amp;quot;state&amp;quot; is the state that will be used for calculations&lt;br /&gt;
use 0 (omit), to automatically use the current state&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| property_name&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| p.dist&lt;br /&gt;
| &amp;quot;property_name&amp;quot; defines a (custom) property in which the calculated distance will be stored.&lt;br /&gt;
This can be used e.g. for labeling or spectrum coloring etc. (cf. examples)&amp;lt;br&amp;gt;&lt;br /&gt;
NB! older PyMOL versions only support b or q and the distance will overwrite this property if set.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| coordinates&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| 0&lt;br /&gt;
| &amp;quot;coordinates&amp;quot; toggles whether, besides distance, the atom coordinates will be included in the report.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| decimals&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| 3&lt;br /&gt;
| &amp;quot;decimals&amp;quot; is the number of decimal places calculated.&lt;br /&gt;
Note that PDB files do not support a higher resolution than 3.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| sort&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| 1&lt;br /&gt;
| &amp;quot;sort&amp;quot; defines how the output will be sorted:&lt;br /&gt;
1: ascending (default)&amp;lt;br&amp;gt;&lt;br /&gt;
0: no sorting (by selection)&amp;lt;br&amp;gt;&lt;br /&gt;
-1: descending&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| quiet&lt;br /&gt;
| style=&amp;quot;text-align:center;&amp;quot;| 1&lt;br /&gt;
| toggle verbosity&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
{|-&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# make function available to PyMOL&lt;br /&gt;
import distancetoatom&lt;br /&gt;
&lt;br /&gt;
##############################&lt;br /&gt;
# Example 1: print all distances&lt;br /&gt;
frag LYS&lt;br /&gt;
edit name CA&lt;br /&gt;
distancetoatom&lt;br /&gt;
&lt;br /&gt;
##############################&lt;br /&gt;
# Example 2: print all distances to file&lt;br /&gt;
fetch 1cll, async=0&lt;br /&gt;
distancetoatom origin=/1cll//A/CA`150/CA, filename=distances.txt, selection=elem O, property_name=b&lt;br /&gt;
# the file is CSV-format and can be imported, e.g. to EXCEL&lt;br /&gt;
&lt;br /&gt;
# format&lt;br /&gt;
hide everything&lt;br /&gt;
select byres (resi 150 expand 5 and not resn hoh) &lt;br /&gt;
show_as sticks, sele&lt;br /&gt;
util.cbaw sele&lt;br /&gt;
show_as spheres, resi 150&lt;br /&gt;
zoom sele&lt;br /&gt;
&lt;br /&gt;
##########&lt;br /&gt;
# Label by stored distance (property_name)&lt;br /&gt;
label sele and elem O, &amp;quot;%.2f&amp;quot;%b&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
##############################&lt;br /&gt;
# Example 3: color an object by distance to a coordinate&lt;br /&gt;
&lt;br /&gt;
fetch 1cll, async=0&lt;br /&gt;
distancetoatom [0,0,0], cutoff=1000, property_name=b&lt;br /&gt;
# the distance is stored in the b-factor in this case&lt;br /&gt;
# newer PyMOL versions support custom properties, e.g. &amp;quot;p.dist&amp;quot;&lt;br /&gt;
spectrum b, rainbow_rev &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
[[Image:distancetoatom_2.png|300px|Example 2]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:distancetoatom_1.png|300px|Example 3]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SEE ALSO==&lt;br /&gt;
* [[Distance]]&lt;br /&gt;
* [[Get Distance]]&lt;br /&gt;
* [[Get raw distances]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library]]&lt;br /&gt;
[[Category:UI_Scripts]]&lt;br /&gt;
[[Category:Math_Scripts]]&lt;br /&gt;
[[Category:Biochemical_Properties]]&lt;br /&gt;
[[Category:Biochemical_Scripts]]&lt;/div&gt;</summary>
		<author><name>Andwar</name></author>
	</entry>
</feed>