From: namd vmd (namd.vmd_at_gmail.com)
Date: Thu Mar 29 2007 - 03:21:45 CDT

Hi,

I want to assign different variable names for each residue in a protein
using a for loop. Something like:

for {set i 1} {$i < 10} {incr i} {
set prot${i} [atomselect top "protein and resid $i "]
puts $prot${i}
}

But this does not work, and vmd says that the variable $prot is not found.
How to solve this problem ?