Hi Albert, I get the following error
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pymol/parser.py", line 254, in parse self.result=apply(layer.kw[0],layer.args,layer.kw_args) File "exportToWeb.py", line 138, in dump_rep int(255 * float(bgcolor[1])), int(255 * float(bgcolor[2]))) A quick and dirty workaround is to change ret += "\nbgcolor:%02x%02x%02x" % (int(255 * float(bgcolor[0])), \ int(255 * float(bgcolor[1])), int(255 * float(bgcolor[2]))) to ret += "\nbgcolor:%02x%02x%02x" % (int(255 * float(bgcolor[0])), \ int(255 * float(bgcolor[0])), int(255 * float(bgcolor[0]))) I guess Thomas could provide a proper solution to this problem. The problem, if I get it correctly, is that cmd.get_setting_tuple('bg_rgb')[1] is returning an integer-code for the colors, while the plugin is expecting and RGB-code. Cheers, Osvaldo. On Sat, Oct 17, 2015 at 10:35 AM, Albert <mailmd2...@gmail.com> wrote: Hello: > > I noticed that there is a plugin called > > > exportToWeb.py > > I try to rum it with command: > > python exportToWeb.py test.pse > > However, no any new file generated.... I am just wondering how shall we > use this script correctly? > > thanks a lot > > Albert > > > ------------------------------------------------------------------------------ > > _______________________________________________ > 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 >
------------------------------------------------------------------------------
_______________________________________________ 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