[PyMOL] iterate over object names

2007-02-16 Thread Rafael Najmanovich
Hi, I need to iterate over object names from within a script. Any ideas on how to do it? While a variable objn exists and it can be used to label objects, if I use the iterate command, it seems I cannot access it. Thanks in advance. r. Dr. Rafael Najmanovich Europ

Re: [PyMOL] iterate over object names

2007-02-16 Thread Rafael Najmanovich
The solution seems to be: 1. use cmd.get_names() to get object names 2. use cmd.get_type() to get the type of object for each element in the list from 1. get_names() does not seem to work directly from the GUI. Let me know if there is anything more appropriat