VMD-L Mailing List
From: Jeffrey A Tibbitt (jtibbitt_at_hawaii.edu)
Date: Thu Mar 29 2018 - 03:29:19 CDT
- Next message: Amin Koochaki: "Coloring of a trajectory with atom types more than 9"
- Previous message: Jeffrey A Tibbitt: "Is there a way to create atom selection for a list of atom indices?"
- In reply to: Monika Madhavi: "Re: Is there a way to create atom selection for a list of atom indices?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Thanks. I must have had a bug in my code before. It works now.
On Wed, Mar 28, 2018 at 9:23 PM, Monika Madhavi <monikamadhavi_at_gmail.com>
wrote:
> Hi Jeffrey,
>
> You can do what you want to do the exact way you have shown here.
>
> Best,
> Monika
>
> On Thu, Mar 29, 2018 at 12:13 PM, Jeffrey A Tibbitt <jtibbitt_at_hawaii.edu>
> wrote:
>
>> Hi, is there a way to create an atom selection for a list of atom indices?
>>
>> I'm trying to do something like the following:
>> set atomlist {1 3 7 11} ;# Atoms 1,
>> 3, 7 and 11
>> set sel [atomselect top "index $atomlist"] ;# Create selection
>> containing those atoms
>>
>> --
>> *Jeffrey A Tibbitt*
>> Lecturer of Chemistry
>> University of Hawai'i - Maui College
>>
>
>
>
> --
> W.A.Monika Madhavi
> Lecturer (Probation),
> Department of Physics,
> University of Colombo.
>
-- *Jeffrey A Tibbitt* Lecturer of Chemistry University of Hawai'i - Maui College
- Next message: Amin Koochaki: "Coloring of a trajectory with atom types more than 9"
- Previous message: Jeffrey A Tibbitt: "Is there a way to create atom selection for a list of atom indices?"
- In reply to: Monika Madhavi: "Re: Is there a way to create atom selection for a list of atom indices?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]