I don't think this is possible. Those 9 numbers simply tell you the
orientation. There is much more to it than that. Perspective, camera
position, x-y translation, screen dimensions, for example. Some of these
are in other PyMOL settings.

On Wed, Nov 19, 2014 at 6:14 AM, Feitsma, L.J. <l.j.feit...@uu.nl> wrote:

>  Hi all,
>
>
>
> I have a small question about transformations with the view matrix in
> pymol, since I’m not very familiar with the architecture of the matrix.
>
>
>
> E.g. I take some coordinates [x1,y1,z1], and using cgo objects, I want to
> draw a line/triangle/square to a point distance 4 to the right on the
> screen (so not 4 in object x-coördinates!).
>
> How can I use the information in [0:8] of the view matrix to calculate
> object coordinates [x2, y2, z2] needed to draw the line between [x1, y1,
> z1] and [x2, y2, z2]?
>
>
>
> Does anyone has an example script, or link about which matrix operation I
> need for this?
>
>
>
> Kind regards,
>
>
>
> Louris Feitsma
>
>
>
> Crystal and Structural Chemistry
>
> Utrecht University
>
>  Padualaan 8
>
> 3584 CH Utrecht
>
> The Netherlands
>
> P: +31-30-2539182
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to