Additionally, if you have the ImageMagick suite of tools on your machine
(most Linux distros come with it) you can use the 'montage' program to
stitch the two images together automagically.  Just add the lines:

  print "Creating the stereo image"
  montage = '"montage +frame +shadow +label -tile 2x1 -geometry %sx%s+0+0 
%s_l.png %s_r.png %s_stereo.png"' % ( width, height, output, output, output )
  exec( "os.system("+montage+")" )

to the bottom of the script mentioned below (b/w 'cmd.png(output+"_l")'
and 'cmd.extend('stereo_ray',stereo_ray)').  You may have to add the
line "import os" to the start of the script too.

Cheers,

Stephen

> Subject: Subject: [PyMOL] ray-trace stereoview
> From: tree <javer...@utmb.edu>
> Reply-To: javer...@utmb.edu
> To: PyMol Users List <pymol-users@lists.sourceforge.net>
> Organization: Vertrees Dot Org
> Date: Sun, 12 Jun 2005 19:46:44 -0500
> 
> Alejandro,
> 
> Someone a while back wrote a beautiful script to do this for us.  I
> posted it on the wiki.  Check out
> http://www.pymolwiki.org/index.php/Stereo_Ray
> 
> It should have all the information you'll need.
> 
> HTH,
> 
> -- Jason

-- 
Stephen Graham
PhD candidate and all-around good guy
Crystallography Group
School of Molecular and Microbial Biosciences
Building G08
University of Sydney
New South Wales, 2006
Australia
Ph: +61 2 9351 6012
Fax: +61 2 9351 4726

Reply via email to