<?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=Ball_and_Stick</id>
	<title>Ball and Stick - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Ball_and_Stick"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;action=history"/>
	<updated>2026-04-30T02:38:42Z</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=Ball_and_Stick&amp;diff=12766&amp;oldid=prev</id>
		<title>Bell: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=12766&amp;oldid=prev"/>
		<updated>2015-07-09T21:08:13Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Ball and Stick==&lt;br /&gt;
The '''ball and stick''' representation is very often used to display macromolecules.  PyMOL allows the user the ability to turn on this representation for certain selections, or roll their own hand-made versions of the command (see below).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:Ball_stick.png|Example of Bal and Stick Repr.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Builtin===&lt;br /&gt;
====GUI====&lt;br /&gt;
&lt;br /&gt;
Using the mouse, for the desired object or selection click '''A &amp;gt; Preset &amp;gt; ball and stick'''.&lt;br /&gt;
&lt;br /&gt;
====Command Line/API====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# turn on the representation for everything in PyMOL&lt;br /&gt;
preset.ball_and_stick(selection='all', mode=1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
or... (keeping in mind that the [[single-word selectors]] page includes more possible selections to substitute &amp;lt;code&amp;gt;r. STI&amp;lt;/code&amp;gt; with) &lt;br /&gt;
&amp;lt;source lang = &amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# turn on representation for one ligand (in this example STI or imatinib) in PyMOL&lt;br /&gt;
preset.ball_and_stick(selection='r. STI', mode=1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameter ''mode'' can be 1 or 2. With ''mode=1'' you'll have...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, selection, selection&lt;br /&gt;
set_bond stick_radius, 0.14, selection, selection&lt;br /&gt;
set sphere_scale, 0.25, selection&lt;br /&gt;
show sticks, selection&lt;br /&gt;
show spheres, selection&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If ''mode=2'' than you'll get...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, selection, selection&lt;br /&gt;
set_bond stick_radius, -0.14, selection, selection&lt;br /&gt;
set stick_ball, 1&lt;br /&gt;
set stick_ball_ratio, -1.0&lt;br /&gt;
set stick_ball_color, atomic&lt;br /&gt;
show sticks, selection&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hand Made===&lt;br /&gt;
Balls with sticks really look nice.  You can even create your own style of this, with control over '''[[sphere_scale]]''' and '''[[stick_radius]]'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
hide lines&lt;br /&gt;
show sticks&lt;br /&gt;
show spheres&lt;br /&gt;
set stick_radius, 0.1, (all)&lt;br /&gt;
set sphere_scale, 0.25, (all)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also OK:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
show sticks&lt;br /&gt;
set valence, on&lt;br /&gt;
set stick_ball, on&lt;br /&gt;
set stick_ball_ratio, 3&lt;br /&gt;
set stick_radius, 0.12&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can adjust the two numbers above to your taste.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Ed. As of 0.98bXX there is a GUI-enable Ball &amp;amp; Stick representation available to users.&lt;br /&gt;
[[User:Tree|Tree]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Representations|Ball and Stick]]&lt;br /&gt;
[[Category:Sticks]]&lt;/div&gt;</summary>
		<author><name>Bell</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=844&amp;oldid=prev</id>
		<title>Pyadmin: 6 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=844&amp;oldid=prev"/>
		<updated>2014-03-28T01:06:24Z</updated>

		<summary type="html">&lt;p&gt;6 revisions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Ball and Stick==&lt;br /&gt;
The '''ball and stick''' representation is very often used to display macromolecules.  PyMOL allows the user the ability to turn on this representation for certain selections, or roll their own hand-made versions of the command (see below).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:Ball_stick.png|Example of Bal and Stick Repr.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Builtin===&lt;br /&gt;
====GUI====&lt;br /&gt;
&lt;br /&gt;
Using the mouse, for the desired object or selection click '''A &amp;gt; Preset &amp;gt; ball and stick'''.&lt;br /&gt;
&lt;br /&gt;
====Command Line/API====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# turn on the representation for everything in PyMOL&lt;br /&gt;
preset.ball_and_stick(selection='all', mode=1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameter ''mode'' can be 1 or 2. With ''mode=1'' you'll have...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, selection, selection&lt;br /&gt;
set_bond stick_radius, 0.14, selection, selection&lt;br /&gt;
set sphere_scale, 0.25, selection&lt;br /&gt;
show sticks, selection&lt;br /&gt;
show spheres, selection&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If ''mode=2'' than you'll get...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, selection, selection&lt;br /&gt;
set_bond stick_radius, -0.14, selection, selection&lt;br /&gt;
set stick_ball, 1&lt;br /&gt;
set stick_ball_ratio, -1.0&lt;br /&gt;
set stick_ball_color, atomic&lt;br /&gt;
show sticks, selection&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hand Made===&lt;br /&gt;
Balls with sticks really look nice.  You can even create your own style of this, with control over '''[[sphere_scale]]''' and '''[[stick_radius]]'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
hide lines&lt;br /&gt;
show sticks&lt;br /&gt;
show spheres&lt;br /&gt;
set stick_radius, 0.1, (all)&lt;br /&gt;
set sphere_scale, 0.25, (all)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also OK:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
show sticks&lt;br /&gt;
set valence, on&lt;br /&gt;
set stick_ball, on&lt;br /&gt;
set stick_ball_ratio, 3&lt;br /&gt;
set stick_radius, 0.12&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can adjust the two numbers above to your taste.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Ed. As of 0.98bXX there is a GUI-enable Ball &amp;amp; Stick representation available to users.&lt;br /&gt;
[[User:Tree|Tree]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Representations|Ball and Stick]]&lt;br /&gt;
[[Category:Sticks]]&lt;/div&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=842&amp;oldid=prev</id>
		<title>Dodomorandi: Added info about graphical transformations made by the command + changed two deprecated examples.</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=842&amp;oldid=prev"/>
		<updated>2010-06-01T13:17:30Z</updated>

		<summary type="html">&lt;p&gt;Added info about graphical transformations made by the command + changed two deprecated examples.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Ball and Stick==&lt;br /&gt;
The '''ball and stick''' representation is very often used to display macromolecules.  PyMOL allows the user the ability to turn on this representation for certain selections, or roll their own hand-made versions of the command (see below).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:Ball_stick.png|Example of Bal and Stick Repr.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Builtin===&lt;br /&gt;
====GUI====&lt;br /&gt;
From the PyMOL representation menu choose, &amp;quot;Ball and Stick&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Command Line/API====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# turn on the representation for everything in PyMOL&lt;br /&gt;
preset.ball_and_stick(selection='all', mode=1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameter ''mode'' can be 1 or 2. With ''mode=1'' you'll have...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, selection, selection&lt;br /&gt;
set_bond stick_radius, 0.14, selection, selection&lt;br /&gt;
set sphere_scale, 0.25, selection&lt;br /&gt;
show sticks, selection&lt;br /&gt;
show spheres, selection&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If ''mode=2'' than you'll get...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, selection, selection&lt;br /&gt;
set_bond stick_radius, -0.14, selection, selection&lt;br /&gt;
set stick_ball, 1&lt;br /&gt;
set stick_ball_ratio, -1.0&lt;br /&gt;
set stick_ball_color, atomic&lt;br /&gt;
show sticks, selection&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hand Made===&lt;br /&gt;
Balls with sticks really look nice.  You can even create your own style of this, with control over '''[[sphere_scale]]''' and '''[[stick_radius]]'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
hide lines&lt;br /&gt;
show sticks&lt;br /&gt;
show spheres&lt;br /&gt;
set stick_radius, 0.1, (all)&lt;br /&gt;
set sphere_scale, 0.25, (all)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also OK:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
show sticks&lt;br /&gt;
set valence, on&lt;br /&gt;
set stick_ball, on&lt;br /&gt;
set stick_ball_ratio, 3&lt;br /&gt;
set stick_radius, 0.12&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can adjust the two numbers above to your taste.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Ed. As of 0.98bXX there is a GUI-enable Ball &amp;amp; Stick representation available to users.&lt;br /&gt;
[[User:Tree|Tree]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Representations|Ball and Stick]]&lt;br /&gt;
[[Category:Sticks]]&lt;/div&gt;</summary>
		<author><name>Dodomorandi</name></author>
	</entry>
</feed>