From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Wed Jul 08 2009 - 11:17:14 CDT

On Wed, 2009-07-08 at 17:39 +0200, maria goranovic wrote:
> I am trying to do something like this:

> set temp [atomselect top "resid [lindex $list $number]"]

maria,

please give a more detailed explanation of what you expect
it to do and what it does instead. it works fine for me,
the way i think it should work considering the tcl script
language syntax. example:

vmd > set list [list 0 1 2 3 4 5 6 7 8]
vmd > set number 5
vmd > set temp [atomselect top "resid [lindex $list $number]"]
vmd > $temp text
resid 5

cheers,
   axel.

> this does not work. how does one do this?
>
> thanks !
>
> Maria G.
> Technical University of Denmark
> Copenhagen

-- 
=======================================================================
Axel Kohlmeyer   akohlmey_at_cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.