That looks very interesting.

I needed to make my shortcut to chrome look like this:
/opt/google/chrome/google-chrome --enable-webgl %U

Your example page is extremely fast, and the View mode change 
is working perfectly and fast.

This is the first version of PyMOL-to-webpage i have seen, which looks very easy.
I normally have only seen Jmol application for this: 
http://www.proteopedia.org/wiki/index.php/4ins

God work!


Troels Emtekær Linnet
Slotsvej 2
4300 Holbæk
Mobil:
+45 60210234



2012/1/16 Takanori Nakane <t.nakane@mail.mfour.med.kyoto-u.ac.jp>
Dear Pymol users,

I wrote a Pymol script to export a scene in Pymol to GLmol,
a molecular viewer for Web browsers written in WebGL/Javascript.
With this script, you can publish your Pymol scene for Web page.
Visitors can rotate, zoom the molecule on the page.

Compared to exporting polygon coordinates (VRML or Object3D),
published pages contain only atomic coordinates so that
the file size is much smaller and visitors can even change
representation.

Examples and script can be downloaded from my web page.
http://webglmol.sourceforge.jp/pymol_exporter/index.html

This script uses (undocumented?) "cmd.get_session" to
extract which representation is enabled on each part of the molecule.
I think this technique is useful for many purposes, for example,
writing exporters, copying representations between aligned
structures, etc.

Comments and suggestions are welcome.
If you think this script useful, I will put it on Pymol wiki.

Best regards,

Takanori Nakane

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
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