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" <tsje...@gmail.com> wrote:

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 Kosinski <k...@genesilico.pl> wrote:
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 it helps,

Tsjerk

On Fri, Feb 27, 2009 at 3:44 PM, Jan Kosinski <k...@genesilico.pl> wrote:


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


--- --- --- --- ------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users











--
Tsjerk A. Wassenaar, Ph.D.
Junior UD (post-doc)
Biomolecular NMR, Bijvoet Center
Utrecht University
Padualaan 8
3584 CH Utrecht
The Netherlands
P: +31-30-2539931
F: +31-30-2537623

--- --- --- --------------------------------------------------------------------- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users



Reply via email to