VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Fri Oct 20 2006 - 14:03:56 CDT
- Next message: Jawahar Neelankatan: "Re: CPK Graphical Representation"
- Previous message: Myunggi Yi: "adding selections"
- In reply to: Myunggi Yi: "adding selections"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Fri, 20 Oct 2006, Myunggi Yi wrote:
MY> Dear users,
MY>
MY> How can I add selections?
MY> I want to do something like the following,
MY>
MY> set sel [$sel1 + $sel2]
no. you cannot do this. $sel1 and $sel2 simply contain
strings (which are the names of automatically generated
procedures, i.e. atomselect0, atomselect1, etc.).
what you can try is to create a new selection with the
combined selection string (make sure that $sel1 and $sel2
point to the same molecule).
set sel3 [atomselect [$sel1 molid] "([$sel1 text]) or ([$sel2 text])"]
axel.
MY>
MY>
MY>
MY>
-- ======================================================================= 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.
- Next message: Jawahar Neelankatan: "Re: CPK Graphical Representation"
- Previous message: Myunggi Yi: "adding selections"
- In reply to: Myunggi Yi: "adding selections"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]