Re: [PyMOL] Get dihedral angle of multiple objects

2016-12-07 Thread Rui Sousa
Hi, I am assuming it is because, when you pass the arguments on the cmd.dihedral() command, the "obj" is being read as a string, instead of the variable obj. I think your problem will be solved if you use something like, for your first example: "/"+obj+"///655/CA" Note the quotation marks pla

[PyMOL] Get dihedral angle of multiple objects

2016-12-07 Thread Val Yu
Hi, I'm trying to use this script to get a specific dihedral angle from all the objects and write into a file: PyMOL>f = open('dih.txt','w') PyMOL>for obj in cmd.get_object_list():\ PyMOL>dih = cmd.dihedral('dih','/obj///655/CA','/obj///655/CB','/obj///655/CG','/obj///655/CD1')\ PyMOL>f.w