Bradley,

The fastest way is to create two pseudoatoms and measure the distance
between them.  For an arrow, see Modevectors
(http://www.pymolwiki.org/index.php/Modevectors).

pseudoatom pt1, pos=[x1, y1, z1]
pseudoatom pt2, pos=[x2, y2, z2]
distance /pt1, /pt2
set dash_gap, 0

You can also create CGO lines between two points, if you want.

Cheers,

-- Jason

On Thu, Jul 22, 2010 at 11:58 AM, Bradley Hintze
<bradle...@aggiemail.usu.edu> wrote:
> Hi all,
>
> Can I draw a vector if I give two XYZ coords in pymol?
>
> e.g.
> draw_vector(x1, y1, z1, x2, y2, z2)
>
> Thanks,
> Bradley
>
> --
> Bradley J. Hintze
> Graduate Student
> Duke University
> School of Medicine
> 801-712-8799
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> 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
>



-- 
Jason Vertrees, PhD
PyMOL Product Manager
Schrodinger, LLC

(e) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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