User:Karsten Theis/Sandbox 2

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
<jmol>
<jmol>
<jmolLink>
<jmolLink>
-
<script> function delay2play(delaytime, defaultbanner)
+
<script>
-
{
+
spacefill on;
-
if not delaytime {
+
delay 5;
-
delaytime = 10
+
hide none;
-
}
+
delay 5;
-
message driver:One hand to move, two to zoom
+
hide all;
-
spinState = script("show state/spin"); spin off
+
spacefill 23%;
-
orientState == script("show moveto")
+
-
original = orientState
+
-
time = 5
+
-
while (time > 0) {
+
-
delay 5
+
-
time = time - 5
+
-
if (script("show moveto") != orientState){
+
-
time = delaytime
+
-
orientState == script("show moveto")
+
-
}
+
-
}
+
-
message driver:@{defaultbanner}
+
-
script inline @original
+
-
script inline @spinState
+
-
}
+
-
 
+
-
message driver:Cyclohexane and Benzene
+
-
hide hydrogen
+
-
spin x 40
+
-
delay 5
+
-
spacefill on
+
-
delay 5
+
-
hide none
+
-
delay 5
+
-
 
+
-
hide all
+
-
spacefill 23%
+
-
model 2
+
-
moveto 1.0 { 995 20 94 26.02} 5.0 23.05 26.26 {0.0 0.0 0.0} 3.6843593 {0 0 0} 0 0 0 3.0 0.0 0.0;
+
-
hide hydrogen
+
-
message driver:Benzene atoms lie in a plane
+
-
moveto 1.0 { -348 -908 235 3.05} 180.0 0.2 -13.28 {2.7000167 1.6659498E-5 0.0} 10.545738 {0 0 0} 0 0 0 3.0 0.0 0.0;
+
-
spin x 40
+
-
delay 5
+
-
hide none
+
-
delay2play(2,"")
+
-
moveto 1.0 { 995 20 94 26.02} 5.0 23.05 26.26 {0.0 0.0 0.0} 3.6843593 {0 0 0} 0 0 0 3.0 0.0 0.0;
+
-
hide all
+
-
 
+
-
delay 0.1
+
-
spacefill 23%
+
-
moveto 1.0 { 966 -191 175 105.1} 5.0 -21.78 27.27 {0.0 0.0 0.0} 3.6843593 {0 0 0} 0 0 0 3.0 0.0 0.0;
+
-
model 1
+
-
hide hydrogen
+
-
message driver:Cyclohexane atoms do not
+
-
moveto 1.0 { 931 -271 244 93.99} 200.0 0.24 -14.0 {-4.4000006 0.09999446 -6.0929193E-7} 10.538417 {0 0 0} 0 0 0 3.0 0.0 0.0;
+
-
spin x 40
+
-
delay 5
+
-
display displayed or (H11, H18, H9, H8, H13, H15)
+
-
delay 5
+
-
hide none
+
-
isosurface plane {C1 and 1.1}{C4 and 1.1}{C5 and 1.1}
+
-
delay2play(2,"")
+
-
isosurface off
+
-
moveto 1.0 { 966 -191 175 105.1} 5.0 -21.78 27.27 {0.0 0.0 0.0} 3.6843593 {0 0 0} 0 0 0 3.0 0.0 0.0
+
-
 
+
-
model 0
+
-
center visible
+
-
zoom 100
+
-
message driver:shrink to advance
+
</script>
</script>
<text>The script</text>
<text>The script</text>
</jmolLink>
</jmolLink>
</jmol>
</jmol>

Revision as of 21:32, 1 May 2025

PDB ID 1bna

Drag the structure with the mouse to rotate


Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis, Jaime Prilusky

Personal tools