From: John Stone (
Date: Wed Jan 24 2007 - 12:19:36 CST

  You can do things like this with:
set vec [list $x $y $z]
set vec "$x $y $z"


On Wed, Jan 24, 2007 at 12:14:28PM +0200, Vivek Sharma wrote:
> Hi everyone,
> A little problem, actually, I am trying to define vectors (at arbitrary
> points) in space in VMD. Like,
> set temp_vector {1 2 3}, now in place of 1,2,3 i.e. x,y and z, I would like
> to put some variables, which are defined and are taking value from
> somewhere, specifically to say, set temp_vector {$a $b $c},can something of
> that kind be done in VMD? I couldnt make it work it like that atleast.
> Please reply if you have any ideas, once again to say, I have to define many
> arbitrary vectors in space, without a pdb i.e. no lindex, etc.
> br,
> Vivek

NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email:                 Phone: 217-244-3349
  WWW:      Fax: 217-244-6078