Difference between revisions of "Sticks"

From PyMOLWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
= Overview =
 
A simple PyMol representation.  Use
 
A simple PyMol representation.  Use
 
<code>
 
<code>
Line 5: Line 6:
 
where SELECTION is a valid selection or previously defined selection name.
 
where SELECTION is a valid selection or previously defined selection name.
  
[[Image:Sticks_ex.png|thumb|center|Example Sticks Representation]]
+
<gallery>
 +
Image:Sticks_ex.png|Example Sticks Representation
 +
</gallery>
  
== Sticks Radius  (Sticks Weight)==
+
==Sticks Settings==
 +
=== Sticks Radius  (Sticks Weight)===
 
To change the radius for sticks, enter the following:
 
To change the radius for sticks, enter the following:
set stick_radius, VALUE
+
<source lang="python">
 +
set stick_radius, VALUE
 +
</source>
 
where  
 
where  
 
  0.0<=VALUE<=1.0
 
  0.0<=VALUE<=1.0
  
'''1.0''' is 100% or full radius
+
*'''1.0''' is 100% or full radius
 
+
*'''0.0''' is 0% or invisible -- so use at least 0.1 or greater
'''0.0''' is 0% or invisible -- so use at least 0.1 or greater
 
 
 
 
 
 
*The default value is: ~0.3
 
*The default value is: ~0.3
  
==Sticks Transparency==
+
===Sticks Transparency===
 
To enable transparency for sticks, enter the following:
 
To enable transparency for sticks, enter the following:
set stick_transparency, VALUE
+
<source lang="python">
where  
+
set stick_transparency, VALUE
0.0<=VALUE<=1.0
+
</source>
 
+
where ''0.0<=VALUE<=1.0''
'''1.0''' is 100% transparent -- so invisible
 
 
 
'''0.0''' is 0% transparent -- so opaque
 
 
 
 
 
Example
 
set stick_transparency, 0.45
 
 
 
  
 +
*'''1.0''' is 100% transparent -- so invisible
 +
*'''0.0''' is 0% transparent -- so opaque
  
 +
====Example====
 +
<source lang="python">
 +
set stick_transparency, 0.45
 +
</source>
  
 
[[Category:Representations|Sticks]]
 
[[Category:Representations|Sticks]]

Revision as of 17:33, 3 November 2007

Overview

A simple PyMol representation. Use

show sticks, SELECTION

where SELECTION is a valid selection or previously defined selection name.

Sticks Settings

Sticks Radius (Sticks Weight)

To change the radius for sticks, enter the following:

set stick_radius, VALUE

where

0.0<=VALUE<=1.0
  • 1.0 is 100% or full radius
  • 0.0 is 0% or invisible -- so use at least 0.1 or greater
  • The default value is: ~0.3

Sticks Transparency

To enable transparency for sticks, enter the following:

set stick_transparency, VALUE

where 0.0<=VALUE<=1.0

  • 1.0 is 100% transparent -- so invisible
  • 0.0 is 0% transparent -- so opaque

Example

set stick_transparency, 0.45