From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Fri Feb 09 2007 - 16:30:00 CST

On Fri, 9 Feb 2007, Hai-Jun Su wrote:

HJS> Hi, all
HJS>
HJS> I am trying load in multiple (~100) pdb files to view the conformation of a
HJS> protein. Is there is an easier to load in multiple files once? It is pain to
HJS> load in one by one through the file browser. Thanks.

yes using the text console.

pick one of them and load it with:

mol new file1.pdb

and then run:

animate delete all
foreach f [lsort [glob {file*.pdb} ] ] {
        mol addfile $f type pdb waitfor all
}

axel.

HJS>
HJS> Hai-Jun Su
HJS>

-- 
=======================================================================
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.