VMD-L Mailing List
From: Bennion, Brian (Bennion1_at_llnl.gov)
Date: Fri Jul 05 2013 - 15:54:16 CDT
- Next message: Axel Kohlmeyer: "Re: manipulation of atomselections"
- Previous message: Grace Brannigan: "Re: center of mass"
- Next in thread: Axel Kohlmeyer: "Re: manipulation of atomselections"
- Reply: Axel Kohlmeyer: "Re: manipulation of atomselections"
- Reply: Josh Vermaas: "Re: manipulation of atomselections"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hello,
At some level this question is a tcl and vmd syntax issue.
set 1 [atomselect $loop1 "resname OBDN and (name O34 or name O35)"]
set 2 [atomselect $loop1 " resname I61 and name O9"]
set 3 [atomselect $loop1 " resname hlo0 and (name O14 or name O17)"]
foreach x { 1 2 3 } {
if { [$x list ] != {} } {
do something
}
}
The error is: invalid command name "1"
I am just trying to check to make sure the atomselection actually contains something before I operate on it.
Brian
- Next message: Axel Kohlmeyer: "Re: manipulation of atomselections"
- Previous message: Grace Brannigan: "Re: center of mass"
- Next in thread: Axel Kohlmeyer: "Re: manipulation of atomselections"
- Reply: Axel Kohlmeyer: "Re: manipulation of atomselections"
- Reply: Josh Vermaas: "Re: manipulation of atomselections"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]