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 appropriate.
r.
On 16 Feb 2007, at 13:52, Rafael Najmanovich wrote:
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
European Bioinformatics Institute
Wellcome Trust Genome Campus
Cambridge CB10 1SD
United Kingdom
rafael.najmanovich [at] ebi.ac.uk - www.ebi.ac.uk/~rafi
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users
Dr. Rafael Najmanovich
European Bioinformatics Institute
Wellcome Trust Genome Campus
Cambridge CB10 1SD
United Kingdom
rafael.najmanovich [at] ebi.ac.uk - www.ebi.ac.uk/~rafi