<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dodomorandi</id>
	<title>PyMOL Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dodomorandi"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Dodomorandi"/>
	<updated>2026-04-30T04:05:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Sphere_scale&amp;diff=10334</id>
		<title>Sphere scale</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Sphere_scale&amp;diff=10334"/>
		<updated>2010-06-01T13:42:42Z</updated>

		<summary type="html">&lt;p&gt;Dodomorandi: Added the complete command form and more exaustive examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This setting affects the apparent radius of spheres in the sphere representation. Default scale is set to 1.0.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# set the sphere scale to size for selection.&lt;br /&gt;
cmd.set (&amp;quot;sphere_scale&amp;quot;, size=1, selection='', state=0, updates=1, log=0, quiet=1)&lt;br /&gt;
# generally it's simpler to use the console form&lt;br /&gt;
set sphere_scale, size, selection&lt;br /&gt;
# you can print the current value for sphere_scale&lt;br /&gt;
get sphere_scale&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
''size'' can be any floating point number, ''selection'' is the name of a selection.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
Using 0.25 gives a nice balls&amp;amp;sticks representation with both lines and spheres turned on.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, white, (all), (all)&lt;br /&gt;
set_bond stick_radius, 0.14, (all), (all)&lt;br /&gt;
set sphere_scale, 0.25, (all)&lt;br /&gt;
show sticks&lt;br /&gt;
show spheres&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''set sphere_scale''' by itself will revert to default. Here you'll get a simple VDW rapresentation.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set_bond stick_color, blue, (all), (all)&lt;br /&gt;
set_bond stick_radius, 0.3, (all), (all)&lt;br /&gt;
set sphere_transparency, 0.3&lt;br /&gt;
set sphere_scale&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related settings==&lt;br /&gt;
*[[sphere_color]]&lt;br /&gt;
*[[sphere_mode]]&lt;br /&gt;
*[[sphere_point_max_size]]&lt;br /&gt;
*[[sphere_point_size]]&lt;br /&gt;
*[[sphere_quality]]&lt;br /&gt;
*[[sphere_solvent]]&lt;br /&gt;
*[[sphere_transparency]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Settings]]&lt;br /&gt;
[[Category:Spheres]]&lt;/div&gt;</summary>
		<author><name>Dodomorandi</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=842</id>
		<title>Ball and Stick</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Ball_and_Stick&amp;diff=842"/>
		<updated>2010-06-01T13:17:30Z</updated>

		<summary type="html">&lt;p&gt;Dodomorandi: Added info about graphical transformations made by the command + changed two deprecated examples.&lt;/p&gt;
&lt;hr /&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>