<?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=Talbotron22</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=Talbotron22"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Talbotron22"/>
	<updated>2026-04-27T00:45:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Surface&amp;diff=5631</id>
		<title>Surface</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Surface&amp;diff=5631"/>
		<updated>2007-06-25T17:29:33Z</updated>

		<summary type="html">&lt;p&gt;Talbotron22: changed teh -&amp;gt; the&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The surface representation of a protein, in PyMol, shows the &amp;quot;Connolly&amp;quot; surface or the surface that would be traced out by the '''surfaces''' of waters in contact with the protein at all possible positions. [[Image:Surface_ex.png|thumb|Surface Representation Example|right]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Enabling==&lt;br /&gt;
To enable the surface representation do&lt;br /&gt;
 show surface, SEL&lt;br /&gt;
for any proper selection SEL.&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
===Transparency===&lt;br /&gt;
To adjust the transparency of surfaces try:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set transparency, 0.5&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Where 1.0 will be an invisible and 0.0 a completely solid surface.&lt;br /&gt;
&lt;br /&gt;
===Quality===&lt;br /&gt;
To smooth your surface representation try:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set surface_quality, 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
or higher if you wish, though it will take longer and might look odd.&lt;br /&gt;
&lt;br /&gt;
===Probe Radius===&lt;br /&gt;
To change the probe radius other than default 1.4 Å, you need to change the solvent radius, say, 1.6 Å:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set solvent_radius, 1.6&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If the surface does not change correspondingly, use:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
rebuild&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Tips==&lt;br /&gt;
===Displaying a protein as surface with a ligand as sticks===&lt;br /&gt;
The easiest way to do this is to create separate objects for each type of display. &lt;br /&gt;
&lt;br /&gt;
- Load your protein&lt;br /&gt;
- Select the ligand &lt;br /&gt;
- Create a separate object for the ligand &lt;br /&gt;
- Remove ligand atoms from the protein&lt;br /&gt;
- Display both objects separately&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load prot.ent,protein&lt;br /&gt;
select ligand,resn FAD&lt;br /&gt;
create lig_sticks,ligand&lt;br /&gt;
remove ligand&lt;br /&gt;
show sticks,lig_sticks&lt;br /&gt;
show surface,protein&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Calculating a partial surface===&lt;br /&gt;
There is, until now, an undocumented way to calculate a surface for only a part of an object without creating a new one:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
flag ignore, not A/49-63/, set&lt;br /&gt;
delete indicate&lt;br /&gt;
show surface&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If the surface was already computed, then you'll also need to issue the command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
rebuild&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Displaying surface inside a molecule===&lt;br /&gt;
As far as I can tell, setting ambient to zero alone doesn't quite do the job, since some triangles still get lit by the light source. The best combination I can find is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
set ambient=0&lt;br /&gt;
set direct=0.7&lt;br /&gt;
set reflect=0.0&lt;br /&gt;
set backface_cull=0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Which gives no shadows and only a few artifacts.&lt;br /&gt;
&lt;br /&gt;
As an alternative, you might just consider showing the inside of the surface directly...that will create less visual artifacts, and so long as ambient and direct are sufficiently low, it will look reasonable in &amp;quot;ray&amp;quot;.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
util.ray_shadows(&amp;quot;heavy&amp;quot;)&lt;br /&gt;
set two_sided_lighting=1&lt;br /&gt;
set backface_cull=0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating a Closed Surface===&lt;br /&gt;
[[Image:Surface_open.png|thumb|Example OPEN Surface|left|200px]]&lt;br /&gt;
[[Image:Surface_closed.png|thumb|Example CLOSED Surface|left|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To create what I'll call a '''closed surface''' (see images), you need to first make your atom selections, then create a new object for that selection then show the surface for that object.  Here's an example.&lt;br /&gt;
&lt;br /&gt;
 sel A, id 1-100&lt;br /&gt;
 create B, A&lt;br /&gt;
 show surface, B&lt;br /&gt;
&lt;br /&gt;
[[Category:Representations|Surface]]&lt;/div&gt;</summary>
		<author><name>Talbotron22</name></author>
	</entry>
</feed>