From: Vishnu K (
Date: Fri Jun 17 2016 - 02:37:11 CDT

Hey Everyone,
I have been trying to set coordinates for atoms in VMD. The coordinates are
stored as variables $xc,$yc and $zc. $atsel is the atom-selection
containing just one atom.

I used the code
*$atsel set {x y z} {$xc $yc $zc}*
and i am getting
*atomselect: set: 3 data items doesn't match 1 selected atoms.*

Then i made an array
*ser coord "$xc $yc $zc"*
and then
*$atsel set {x y z} {$coord}*
it returns
*atomselect: set: data element 0 has 1 terms (instead of 3).*

This seems to be pretty contradicting. It would be of great help if anyone
could share the correct code for this case.
Thanking You
Vishnu Prasad K