VMD-L Mailing List
From: Vishnu K (researchvishnuprasad_at_gmail.com)
Date: Fri Jun 17 2016 - 02:37:11 CDT
- Next message: Richard Wood: "RE: Can't read DCD files generated using NAMD."
- Previous message: John Stone: "Re: Can't read DCD files generated using NAMD."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Richard Wood: "RE: Can't read DCD files generated using NAMD."
- Previous message: John Stone: "Re: Can't read DCD files generated using NAMD."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]