Re: [PyMOL] loop through pymol models

2012-03-16 Thread Thomas Holder
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 h

Re: [PyMOL] loop through pymol models

2012-03-16 Thread Troels Emtekær Linnet
And: print models print len(models) print models[0] /Troels 2012/3/16 Troels Emtekær Linnet > models=cmd.get_names() > > python > for model in models: > print model > python end > > /Troels > > > 2012/3/16 Matthias Schmidt > >> Hi, >> >> I would like to have a python script that runs in pymo

[PyMOL] loop through pymol models

2012-03-16 Thread Matthias Schmidt
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 Windo