On 04/26/2011 01:40 PM, Martin Hediger wrote:
> Dear all
>
> I found that PyMOL offer the cmd.get_extent('protein') function, which
> returns the dimensions of the selection.
> Is it complicated to make this function available from within an
> ordinary Pythonscript?

what do you mean with "ordinary Pythonscript"? Either your script is 
called by PyMOL directly (with "pymol -cqr yourscript.py"), or you have 
set up PYTHONPATH, PYMOL_PATH and PYMOL_DATA, run python and launch the 
PyMOL process within the script.

Maybe these pages will help:
http://pymolwiki.org/index.php/Launching_From_a_Script
http://pymolwiki.org/index.php/Python_Integration

Cheers,
   Thomas

--
Thomas Holder
MPI for Developmental Biology

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
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