Hi Albert,

For batch processing (no GUI), run PyMOL with -c. See also 
https://pymolwiki.org/index.php/Command_Line_Options

I fixed the script, it was written for an old PyMOL version.

Cheers,
  Thomas

On 25 Jan 2017, at 17:01, Albert <mailmd2...@gmail.com> wrote:

> BTW, I try to run the example command line, but it always failed with 
> messages:
> 
> 
> PyMOL>pymol2glmol 1tqn
> Traceback (most recent call last):
>  File "/usr/lib64/python2.7/site-packages/pymol/parser.py", line 256, in parse
>    self.result=apply(layer.kw[0],layer.args,layer.kw_args)
>  File "/home/albert/install/pymol/Pymol-script-repo/pymol2glmol.py", line 
> 152, in dump_rep
>    int(255 * float(bgcolor[1])), int(255 * float(bgcolor[2])))
> IndexError: tuple index out of range
> 
> 
> Do you have any idea what's the problem?
> 
> THX again.
> 
> 
> On 01/25/2017 10:46 PM, Thomas Holder wrote:
>> Hi Albert,
>> 
>> What kind of HTML content do you expect? A page with a PNG image? Or an 
>> interactive 3D model? Check out 
>> this:https://pymolwiki.org/index.php/Pymol2glmol
>> 
>> Cheers,
>>   Thomas

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
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