VMD-L Mailing List
From: Olaf Lenz (olenz_at_fias.uni-frankfurt.de)
Date: Fri Feb 23 2007 - 11:16:30 CST
- Next message: Jianhui Tian: "Question about RDF of VMD"
- Previous message: Axel Kohlmeyer: "Re: "get {x y z}" returns single value"
- In reply to: Ivan Degtyarenko: ""get {x y z}" returns single value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
-----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-----
- Next message: Jianhui Tian: "Question about RDF of VMD"
- Previous message: Axel Kohlmeyer: "Re: "get {x y z}" returns single value"
- In reply to: Ivan Degtyarenko: ""get {x y z}" returns single value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]