Hi Matt,

plugins are not loaded automatically in headless mode. You have to import your 
plugin first if you want to use it from a script. Something like:

import pmg_tk.startup.yourplugin

The plugin manager tells you the python module name of your plugin when you 
click on "Info".

Cheers,
  Thomas

On 01 Apr 2014, at 08:23, mante...@gmail.com wrote:

> Hi all,
> 
> I'm trying to run a PyMOL script from command line that invokes some 
> custom plugins I've written. Everything works as supposed in GUI mode, 
> but when running the script from command line, the parser complains that 
> can't find any of the plugin commands included in the PyMOL script.
> 
> This is the message I'm getting:
> 
> Traceback (most recent call last):
>   File "/home/matt/PyMOL/modules/pymol/parser.py", line 464, in parse
>     exec(layer.com2+"\n",self.pymol_names,self.pymol_names)
>   File "<string>", line 1
>      cellcalc 3,3,3
> 
> 
> Any ideas?
> 
> Thanks in advance
> 
> matt

-- 
Thomas Holder
PyMOL Developer
Schrödinger, Inc.


------------------------------------------------------------------------------
_______________________________________________
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