Dear Pymol uers,
Sorry for this probably basic question but the "search" option for this
mailing list seems to be out of order on the sourceforge website...
I'm trying to make a movie with 3 molecules for each frame. As each molecule
is in a separate pdb file, I would like to find a way to do so without
modifying the pdb files.
So each pdb file is named like this:
O.XXX.Y.pdb
where XXX is the number of the "frame" and Y is a number of the molecule of
the frame (Y has values 1, 2 and 3)
So basicaly the frame 1 should contains O.001.1.pdb, O.001.2.pdb and
O.001.3.pdb, and so on.
I would also like to change the display of some of theses molecules.
So I already wrote this script which does not really work...
##################
compteur=1
for i in range(1,20):
for j in range(1,4):
curfile = "o.%03i.%03i.pdb"%(i,j)
print curfile
fileptr = "file%i"%(compteur)
cmd.load(curfile,fileptr)
cmd.load(curfile,"mov",i)
compteur +=1
cmd.hide("everything", "mov")
cmd.show("spheres", "mov")
###################
whith this non-working script I get only 1 molecule actually moving and in
sphere representation, the other two molecules are static, represented by all
their states on each frame (ie o.XXX.2.pdb is present in each frame, with
XXX=1..20), and not in sphere representation.
So this script may have many bugs. Could someone help me correcting it ?
Thanks by advance,
Adrien