models=cmd.get_names()

python
for model in models:
print model
python end

/Troels

2012/3/16 Matthias Schmidt <matthias.rene.schmidt@gmail.com>
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

------------------------------------------------------------------------------
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