This is a read-only mirror of pymolwiki.org

Difference between revisions of "Stereo ray"

From PyMOL Wiki
Jump to navigation Jump to search
m (moved Stereo Ray to Stereo ray: small letters)
Line 1: Line 1:
 +
{{Infobox script-repo
 +
|type      = script
 +
|filename  = stereo_ray.py
 +
|author    = [[Users:Inchoate|Jason Vertrees]]
 +
|license  = -
 +
}}
 +
 +
== Manually ==
 
[[Image:Stereo_ex_l.png|Left Image|200px|thumb|left]]
 
[[Image:Stereo_ex_l.png|Left Image|200px|thumb|left]]
 
[[Image:Stereo_ex_r.png|Right Image|200px|thumb|right]]
 
[[Image:Stereo_ex_r.png|Right Image|200px|thumb|right]]
 
[[Image:Stereo_complete.png|Combined Images|center|thumb|250px]]
 
[[Image:Stereo_complete.png|Combined Images|center|thumb|250px]]
 
<br clear="all" />
 
<br clear="all" />
== Manually ==
 
  
 
To get a stereo diagram you need two images. The left image is rotated +3 degrees and the right image is rotated -3 degrees.
 
To get a stereo diagram you need two images. The left image is rotated +3 degrees and the right image is rotated -3 degrees.
Line 26: Line 33:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
This will create to images, one with an L and one with an R suffix.  Just paste the two images next to each other (in some image editing program) and you're done.
 
This will create to images, one with an L and one with an R suffix.  Just paste the two images next to each other (in some image editing program) and you're done.
 
== Python Code ==
 
 
{{Template:PymolScriptRepoDownload|stereo_ray.py}}
 
 
  
 
[[Category:Script_Library|Stereo Ray]]
 
[[Category:Script_Library|Stereo Ray]]
 
[[Category:UI_Scripts]]
 
[[Category:UI_Scripts]]

Revision as of 21:47, 11 December 2011

Type Python Script
Download stereo_ray.py
Author(s) Jason Vertrees
License -
This code has been put under version control in the project Pymol-script-repo

Manually

Left Image
Right Image
Combined Images


To get a stereo diagram you need two images. The left image is rotated +3 degrees and the right image is rotated -3 degrees.

To obtain the left image, type:

ray angle=+3
png left-image.png

Likewise, to obtain the right image, type:

ray angle=-3
png right-image.png

You still use any other ray based modifications, such as:

ray 1600,1200,angle=+3
png big-left-image.png

Example

import stereo_ray 
stereo_ray output, 1000, 600
stereo_ray MyImages.png

This will create to images, one with an L and one with an R suffix. Just paste the two images next to each other (in some image editing program) and you're done.