From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Tue Feb 07 2017 - 08:35:38 CST

Hi Udaya.

You have several problems:

   - Two opening brackets [[
   - within is not used correctly

The atom select itself should work using:

set sel [atomselect top "name \"OP.*\" and (z<$s and z>$t)"]
Best,
Ajasja

On 7 February 2017 at 15:03, Jérôme Hénin <jerome.henin_at_ibpc.fr> wrote:

> Hi,
>
> Tcl will not substitute variables inside braces, you should enclose the
> whole string in double quotes only.
>
> Jerome
>
> On 7 February 2017 at 14:20, Udaya Dahal <dahal.udaya_at_gmail.com> wrote:
>
>> Hi,
>>
>> This may be a naive question but I am not being able to use variable in
>> the atomselect command. I feel like everything should be straight forward
>> but my variable is read zero. I am using the following command in a loop--001a11491f666f34060547f1a967--