Re: [PyMOL] Script from command line invoking plugins

2014-04-04 Thread Thomas Holder
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, Tho

Re: [PyMOL] Script from command line invoking plugins

2014-04-01 Thread Matthew Baumgartner
Hi, If you don't need the GUI you can access your command using the extend command. In your script, put something like: from pymol import cmd def foo(bar): print bar cmd.extend('foo', foo) Then in pymol first use the 'run' command to have pymol read your script, and then call the funct