Hi Warren,
i have just updated the stpng() function that generates stereo figures. the
function can be called with
contrib.stpng('filename.ext')
it supports a wide range of image formats, which are chosen by the extension
of the image file (ie. .png .tif .ps .pdf .gif .jpg etc...).
contrib.stpng() requires the Python Image Library (PIL) to merge the left and
right images, but the last part of the code can be commented out on systems
that dont have PIL installed. in that case left and right images are still
generated 'filename_left.png, filename_right.png', but not merged.
the function has been tested with the binary version of pymol_0.78 rh7.2 and
python2.1 on a Linux system (SuSE7.3) .
The function is installed by replacing pymol/modules/pymol/contrib.py with
the attached file and please ensure that PIL (ie.
/usr/lib/python/site-packages/PIL) is included in your python path.
cheers
peter
:) ___________________________________________
Peter Haebel
Institute for Molecular Biology and Biophysics
ETH Hoenggerberg, HPK H 11
CH-8037 Zurich
Phone: +41 1 63-33960 Fax: +41 1 633-1246
Email: pet...@mo...
|