[PyMOL] label wizard

2001-11-14 Thread Ezequiel Panepucci
Hello people, This is a labeling wizard. It allows you to click atoms and have a label show up near the atom position. If the atom is a C-alpha the label is slighly different. More info is shown in the "prompt" area. To use it, put the attached file in /pymol/modules/pymol/wizard/lab

RE: [PyMOL] molecule name from PK* selections

2001-11-14 Thread DeLano, Warren
There are a number of different ways to do this, but the easiest is: obj_name = cmd.identify('pk1',1)[0][0] To be safe, your code should probably make sure that the selection pk1 exists and contains at least one atom: obj_name = None if 'pk1' in cmd.get_names('selections'): if cmd.count_atom

[PyMOL] molecule name from PK* selections

2001-11-14 Thread Ezequiel Panepucci
Hello, Is there a way to get the corresponding molecule (or model) name for a given PK1 selection? Thanks, Zac