And:
print models
print len(models)
print models[0]
/Troels
2012/3/16 Troels Emtekær Linnet <[email protected]>
> models=cmd.get_names()
>
> python
> for model in models:
> print model
> python end
>
> /Troels
>
>
> 2012/3/16 Matthias Schmidt <[email protected]>
>
>> 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 ([email protected])
>> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
>> Archives: http://www.mail-archive.com/[email protected]
>>
>
>
------------------------------------------------------------------------------
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 ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]