And:

print models
print len(models)
print models[0]

/Troels

2012/3/16 Troels Emtekær Linnet <tlin...@gmail.com>

> models=cmd.get_names()
>
> python
> for model in models:
>  print model
> python end
>
> /Troels
>
>
> 2012/3/16 Matthias Schmidt <matthias.rene.schm...@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
>>
>
>
------------------------------------------------------------------------------
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