From: Mike McCallum (
Date: Sat Apr 10 2004 - 00:17:26 CDT

I'm trying to center a selection using tkcon. The foreach is failing,
and I'm not sure why:

>Main< (Lambda) 73 % set sel [atomselect top all]
>Main< (Lambda) 74 % set center [list [measure center $sel]]
{1.13973164558 2.0826420784 -8.2399187088}
>Main< (Lambda) 76 % foreach mol [molinfo list]{
wrong # args: should be "foreach varList list ?varList list ...?

(I would follow this command with

molinfo $mol set center $center }

I found the example here: ;

RIght now I'm using charmm to center the selections (I know how to do
it that way, but it is a pain,
compared to using VMD).



C. Michael McCallum               
Associate Professor
Department of Chemistry, UOP
mmccallum .at. pacific .dot. edu                (209) 946-2636 v  / 
(209) 946-2607 fax