Hi Albert, I do the following steps and I get a .html file as expected.
1. I download and unpack this <http://sourceforge.jp/projects/webglmol/downloads/54536/pymol-exporter-0.01.zip/> file. The script there seems to be similar to the one you attached. 2. Lauch PyMOL and do some stuff 3. cd to the folder creating during unpacking 4. run the script by doing run exportToWeb.py 5. then run the commnand exportToWeb PymolObjectName where PymolObjectName is the name of the pymol object you want to export 6. check the unpacked folder for a file with the name PymolObjectName.html Could you try to follow these steps and tell us what you get? Cheers, Osvaldo. On Sat, Oct 17, 2015 at 3:24 PM, Albert <mailmd2...@gmail.com> wrote: Dear Osvaldo: > > thanks a lot for the reply. > > I change the pymol2glmol.py as you sugguested, and rerun it with command: > > python pymol2glmol.py test.pse > > and there is still nothing new generated.... > > do you have any further comments? I've attached the files. > > Thanks again > > Albert > > > > On 10/17/2015 02:01 PM, Osvaldo Martin wrote: > > Hi Albert, > > I change the code to > > bgcolor = cmd.get_color_tuple(cmd.get_setting_tuple('bg_rgb')[1][0]) > ret += "\nbgcolor:%02x%02x%02x" % (int(255 * float(bgcolor[0])), \ > int(255 * float(bgcolor[1])), int(255 * float(bgcolor[2]))) > > I think the code is correct, anyway when I export the scene I always get a > black background. > > Cheers, > > Osvaldo, > > >
------------------------------------------------------------------------------
_______________________________________________ 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