Re: [PyMOL] how to print out the atom type in a pymol script

2010-09-25 Thread zjxu
Dear Thomas, at.hetatm works perfectly! Thanks very much. Best Regards, Zhijian Xu Thomas Holder wrote: > Hi Zhijian, > > it's the at.hetatm attribute. > > try this: > print atoms.atom[0].__dict__ > > Cheers, > Thomas > > On Sat, 2010-09-25 at 22:56 +0800, zjxu wrote: > >> Dear everyone,

Re: [PyMOL] how to print out the atom type in a pymol script

2010-09-25 Thread Thomas Holder
Hi Zhijian, it's the at.hetatm attribute. try this: print atoms.atom[0].__dict__ Cheers, Thomas On Sat, 2010-09-25 at 22:56 +0800, zjxu wrote: > Dear everyone, > > I could print the atom properties in a script except the atom type: > atoms = cmd.get_model("object") > for at in atoms.atom

[PyMOL] remote desktop problems

2010-09-25 Thread Vivek Ranjan
Hello, I am running a remote desktop on my windows machine to work on my office linux machine. When I launch pymol, it fails with the following message: freeglut (pymol): ERROR: Internal error in function fgOpenWindow X Error of failed request: BadWindow (invalid Window parameter) Major opc

[PyMOL] how to print out the atom type in a pymol script

2010-09-25 Thread zjxu
Dear everyone, I could print the atom properties in a script except the atom type: atoms = cmd.get_model("object") for at in atoms.atom: sele1 = model + " and i. " + resi sele2="object and resi %s and name %s"% (at.resi, at.name) #print sele1, sele2 dst=cmd.distance("tmp", s