From: Myunggi Yi (myunggi_at_gmail.com)
Date: Mon Sep 21 2009 - 13:45:20 CDT

Dear VMD users,

I have an atom selection problem.
I want to use a variable in the atom selection.

=====================
>Main< (16T) 21 % set i 1
>Main< (16T) 22 % set sel [atomselect top {name "B.*" and segid $i}]
atomselect39
>Main< (16T) 23 % $sel num
0
>Main< (16T) 24 % set sel [atomselect top {name "B.*" and segid 1}]
atomselect40
>Main< (16T) 25 % $sel num
26
=====================

As you see the above, if I use a variable I cannot select the atoms.

Can anyone help?

-- 
Best wishes,
Myunggi Yi
==================================
91 Chieftan Way
Institute of Molecular Biophysics
Florida State University
Tallahassee, FL 32306
Office: +1-850-645-1334
http://sites.google.com/site/myunggi/
http://people.sc.fsu.edu/~myunggi/