Dan,
MacPyMOL is mostly based on PyMOL open-source code, but there are a few
Mac-specific proprietary pieces.
So to the extent that your suggestions also apply to the Open-Source version,
please consider using the PyMOL Open-Source Trackers linked from the main web
site:
http://pymol.org
Hi,
I wish to iterate over all objects in my pymol session and for each
execute some command. Is it possible to do that using pymol commands?
I could do that using python script but: How can I get a list of current
objects?
Cheers,
Janek
Hi Janek,
You want:
cmd.get_object_list()
For instance, I sometimes want to align a whole lot of things, which I do with:
/for i in cmd.get_object_list(): cmd.align( i, reference )
Hope it helps,
Tsjerk
On Fri, Feb 27, 2009 at 3:44 PM, Jan Kosinski wrote:
> Hi,
>
> I wish to iterate over al
Thanks, that works!
Is there an API reference to pymol for non-sponsor users?
Tsjerk Wassenaar wrote:
Hi Janek,
You want:
cmd.get_object_list()
For instance, I sometimes want to align a whole lot of things, which I do with:
/for i in cmd.get_object_list(): cmd.align( i, reference )
Hope i
No, but naming is usually fairly intuitive, so you can browse through
the module properties:
print dir(cmd)
or
/for i in dir(cmd): print i
or even (to get the functions):
/for i in dir(cmd): callable( getattr( cmd, i ) ) and print i
Cheers,
Tsjerk
On Fri, Feb 27, 2009 at 4:10 PM, Jan Kosinsk
Is it possible to save stick models as .obj files? I know you can save
surfaces as .obj, but I'd also like to be able to export the stick
model. Thanks,
David Borland
Free Api documentation:
#1 is the source code itself (doc strings in modules/pymol/*.py)
#2 are all the commands on pymolwiki.org, which are close to one to
one with the API
Cheers,
Warren
--
Warren L. DeLano, Ph.D.
war...@delsci.com
On Feb 27, 2009, at 7:18 AM, "Tsjerk Wassenaar"
wrote: