From: Olaf Lenz (olenz_at_fias.uni-frankfurt.de)
Date: Fri Feb 23 2007 - 11:16:30 CST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hi!

> So, the questions how to make "vecdist [$n get {x y z}] [$h1 get {x y z}]"
> work in one string?

The reason is that "$n get {x y z}" gives you a list of lists. This list
contains one element, namely a list (vector) containing the three
coordinates. If your selection would contain more than one atom, you
would get more than one vector in the list.

Therefore, the answer to your problem is

vecdist [lindex [$n get {x y z}] 0] [lindex [$h1 get {x y z}]]

Best regards
        Olaf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF3yFutQ3riQ3oo/oRAyqAAKCSXT4DyLSbn70IOEHrH2P8IGYqYgCgse+T
y40LDhjkaIVplnvdjPdFEcE=
=sPGk
-----END PGP SIGNATURE-----