From: Mario Valle (mvalle_at_cscs.ch)
Date: Sun Mar 12 2006 - 00:43:26 CST

for {set i 1} { $i < 11} {incr i} {
    mol addfile $i.pdb type pdb type pdb waitfor all
}

lily jin wrote:

> In the .VMD file, I have :
> mol addfile 1.pdb type pdb type pdb waitfor all
> mol addfile 2.pdb type pdb type pdb waitfor all
> mol addfile 3.pdb type pdb type pdb waitfor all
> mol addfile 4.pdb type pdb type pdb waitfor all
> mol addfile 5.pdb type pdb type pdb waitfor all
> mol addfile 6.pdb type pdb type pdb waitfor all
> mol addfile 7.pdb type pdb type pdb waitfor all
> mol addfile 8.pdb type pdb type pdb waitfor all
> mol addfile 9.pdb type pdb type pdb waitfor all
> mol addfile 10.pdb type pdb type pdb waitfor all
> Is there a way to do the same in a loop? Thanks!
>
>
> *Lily*
>
> ------------------------------------------------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com>
> makes sharing a breeze.