VMD-L Mailing List
From: Fatemesadat Emami (fe2_at_zips.uakron.edu)
Date: Sat May 08 2010 - 19:42:24 CDT
- Next message: Axel Kohlmeyer: "Re: adding atomselections?"
- Previous message: Fatemesadat Emami: "adding atomselections?"
- In reply to: Axel Kohlmeyer: "Re: adding atomselections?"
- Next in thread: Nicholas Musolino: "Re: adding atomselections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Thank you very much
Fatima
On Sat, May 8, 2010 at 8:34 PM, Axel Kohlmeyer <akohlmey_at_gmail.com> wrote:
> On Sat, May 8, 2010 at 7:28 PM, Fatemesadat Emami <fe2_at_zips.uakron.edu>
> wrote:
> >
> > Dear vmd users,
> > Is is possible to add two atomselections, say we have sel1 and sel2 and
> make
> > sel3 which includes sel1 and sel2?
>
> yes. there are many ways, but this should be fairly safe to use.
>
> set mol [$sel1 molid]
> if {$mol == [$sel2 molid]} {
> set sel3 [atomselect $mol "index [$sel1 list] $[sel2 list]"]
> } else {
> error "only selections from the same molecule can be merged"
> }
>
> axel.
>
> > Thanks
> > Fatima
> > --
> > Yours Sincerely,
> > Fateme Sadat Emami
> > Nano Scale Laboratory
> > Polymer Engineering Department
> > The University of Akron
> >
>
>
>
> --
> Dr. Axel Kohlmeyer akohlmey_at_gmail.com
> http://sites.google.com/site/akohlmey/
>
> Institute for Computational Molecular Science
> Temple University, Philadelphia PA, USA.
>
-- Yours Sincerely, Fateme Sadat Emami Nano Scale Laboratory Polymer Engineering Department The University of Akron
- Next message: Axel Kohlmeyer: "Re: adding atomselections?"
- Previous message: Fatemesadat Emami: "adding atomselections?"
- In reply to: Axel Kohlmeyer: "Re: adding atomselections?"
- Next in thread: Nicholas Musolino: "Re: adding atomselections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]