You do, at least in a way.  It's called...

view=cmd.get_view() 
  and
cmd.set_view(view)

...

Adapted from kristian's wonderful tips page:

http://www.rubor.de/bioinf/pymol_tips.html

Meaning of the get_view output

Of the 18 numbers in the output array,
0-8 is the 3x3 rotation matrix,
9-11 is the camera offset, (RELATIVE TO ORIGIN, in WORLD FRAME OF REF.)
12-14 is the origin of rotation, 
15-16 are the clipping distances,
and 17 is the orthoscopic flag.

For example,

view=cmd.get_view() 
view=view[0:12] + (1,3,4) + view[15:]
cmd.set_view(view)

would set the origin to (1,3,4)

Cheers,
Warren

--
mailto:war...@delanoscientific.com
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
Voice (650)-346-1154 
Fax   (650)-593-4020

-----Original Message-----
From: pymol-users-ad...@lists.sourceforge.net
[mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of JP
Cartailler
Sent: Wednesday, June 04, 2003 11:14 AM
To: pymol-users@lists.sourceforge.net
Subject: [PyMOL] RE: [ccp4bb]: Pymol stereo question (fwd)

Very true.

It would be great to have a feature where we have access to a camera
object, with control of the:

1.  camera root (where the camera)
2.  camera target (where it's looking)
3.  focal length control
4.  and all associated 6D transforms.

:)

JP

---------- Forwarded message ----------
Date: Wed, 4 Jun 2003 13:51:16 -0400 (EDT)
From: Tim F <f...@brandeis.edu>
To: Warren L. DeLano <war...@delanoscientific.com>
Cc: 'Flip Hoedemaeker' <f...@keydp.com>,
     'Claudine Mayer' <claudine.ma...@lmcp.jussieu.fr>,
     'CCP4' <ccp...@dl.ac.uk>, pymol-users@lists.sourceforge.net
Subject: RE: [ccp4bb]: Pymol stereo question

***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***

On Wed, 4 Jun 2003, Warren L. DeLano wrote:

> 
> ray angle=-3
> png image1.png
> ray angle=3
> png image2.png
> 

This method of generating stereo images is correct, but also leads to
quite a bit of vertical parallax (the so-called "toe-in" projection) -
this is why many stereoscopic images are hard to view properly (usually,
edges of the image are out of focus).  What you really want is a
non-symmetric camera frustrum (dunno how hard this is to do in
pymol....)
where the two images should look along parallel vectors separated by
some
distance (something like 1/20 the focal length).  Check out Paul
Bourke's
page for all the details:

http://astronomy.swin.edu.au/~pbourke/stereographics/

Hope this helps.

        Regards,
        Tim F

-- 
---------------------------------------------------------

        Tim Fenn
        f...@brandeis.edu
        Rosenstiel Basic Medical Sciences Research Center
        Brandeis University, Mail Stop 029
        415 South Street
        Waltham, MA 02454
        Phone:  (781) 736-4942
        FAX:  (781) 736-2405

---------------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users


Reply via email to