Hi Matthias,

use this:
cmd.get_object_list()

also similar:
cmd.get_names()
cmd.get_names_of_type("object:molecule")
http://pymolwiki.org/index.php/Get_names
http://pymolwiki.org/index.php/Get_names_of_type

Cheers,
   Thomas

Matthias Schmidt wrote, On 03/16/12 11:54:
> Hi,
> 
> I would like to have a python script that runs in pymol and loops
> through all available loaded models. How do I get the number of models
> loaded in pymol?
> 
> Thanks,
> 
> Matthias

-- 
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to