Hi this is my "unsuccessful" first script for pymol. I have a series of files: prot1.pdb prot4.pdb prot55.pdb and so on I'd like to open them using a loop (instead to open one by one) I cat them to a file and then I tried to open all of them in pymol:
from pymol import cmd file=open("file.nam") for i in file.readlines(): cmd.load(i) but is says: ObjectMolecule-ERROR: Unable to open file 'prot1.pdb' ObjectMolecule-ERROR: Unable to open file 'prot4.pdb' .......... the file.nam is just a list: prot1.pdb prot4.pdb prot55.pdb ..... thanks for any help Regards andrea