This is a read-only mirror of pymolwiki.org
Difference between revisions of "Sphere transparency"
Jump to navigation
Jump to search
(Added Sphere transparency setting) |
m (4 revisions) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | = Overview = | ||
set sphere_transparency is used to adjust the transparency of spheres! | set sphere_transparency is used to adjust the transparency of spheres! | ||
| + | <source lang="python"> | ||
| + | set sphere_transparency, 0.5 | ||
| + | </source> | ||
| + | or | ||
| + | <source lang="python"> | ||
| + | set sphere_transparency=0.5, selection | ||
| + | </source> | ||
| − | + | Where 1.0 is invisible and 0.0 completely solid | |
| − | + | = Examples = | |
| + | <gallery> | ||
| + | Image:Sphere transparency ex1.png|Example of transparent spheres | ||
| + | Image:Sphere transparency ex3.png|Example of transparent spheres | ||
| + | </gallery> | ||
| + | These images were made through the following script: | ||
| + | <source lang="python"> | ||
| + | fetch 1ifr; color wheat; hide; show spheres; | ||
| + | color red, i. 506-509; | ||
| + | color marine, byres all within 5 of color red; | ||
| + | set sphere_transparency,0.5,color marine; | ||
| + | </source> | ||
| − | + | [[Category:Settings|Sphere transparency]] | |
| − | + | [[Category:Spheres]] | |
| − | |||
Latest revision as of 03:36, 28 March 2014
Overview
set sphere_transparency is used to adjust the transparency of spheres!
set sphere_transparency, 0.5
or
set sphere_transparency=0.5, selection
Where 1.0 is invisible and 0.0 completely solid
Examples
These images were made through the following script:
fetch 1ifr; color wheat; hide; show spheres;
color red, i. 506-509;
color marine, byres all within 5 of color red;
set sphere_transparency,0.5,color marine;

