Hi,

I have 4 applets (jmolApplet0, jmolApplet0a, jmolApplet1, jmolApplet1a), and
I would like to synchronize 0 with 0a (both as drivers) and 1 with 1a (both
as drivers), but the 0s should rotate independent from the 1s. My code is
below, but for some reason all 4 applets rotate around the same centre of
gravity all together when I move one. Interestingly the choice of the centre
of gravity depends on which applet I click on first.

What am I doing wrong? Please help.

Julia.


<script src="jmol/Jmol.js
<view-source:http://wwwdev.ebi.ac.uk/thornton-srv/databases/CoFactor_dev/jmol/Jmol.js>"
type="text/javascript"></script>

<script type="text/javascript">
        jmolInitialize("jmol");
        jmolSetAppletColor("white");

        jmolApplet(400, "script jmolscripts/0.jmol", "0");
</script>
                        
<script src="jmol/Jmol.js
<view-source:http://wwwdev.ebi.ac.uk/thornton-srv/databases/CoFactor_dev/jmol/Jmol.js>"
type="text/javascript"></script>

<script type="text/javascript">
        jmolInitialize("jmol");
        jmolSetAppletColor("white");

        jmolApplet(400, "script jmolscripts/0a.jmol" , "0a");
        jmolScript("sync jmolApplet0","0a");
</script>


<script src="jmol/Jmol.js
<view-source:http://wwwdev.ebi.ac.uk/thornton-srv/databases/CoFactor_dev/jmol/Jmol.js>"
type="text/javascript"></script>

<script type="text/javascript">
        jmolInitialize("jmol");
        jmolSetAppletColor("white");

        jmolApplet(400, "script jmolscripts/1.jmol", "1");
</script>
                        
<script src="jmol/Jmol.js
<view-source:http://wwwdev.ebi.ac.uk/thornton-srv/databases/CoFactor_dev/jmol/Jmol.js>"
type="text/javascript"></script>

<script type="text/javascript">
        jmolInitialize("jmol");
        jmolSetAppletColor("white");

        jmolApplet(400, "script jmolscripts/1a.jmol" , "1a");
        jmolScript("sync jmolApplet1","1a");
</script>               

-- 
Julia Fischer
EBI - Thornton group (julia.fisc...@ebi.ac.uk)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to