User:Karsten Theis/Animation course

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
Open <jmol><jmolLink><script>script "http://proteopedia.org/scripts/52/520489/Ligand_pocket/2.spt"; x1 = script("show moveto")[11][0]; rotate y 90; x2 = script("show moveto")[11][0]; rotate x -90;x3 = script("show moveto")[11][0]; rotate y -90;x4 = script("show moveto")[11][0]; speed = "moveto 2.0"; script inline @{speed + x1}</script><text>mu opioid receptor</text></jmolLink></jmol> and use your skills learned from the [[viewing guide]] to explore the scene.
Open <jmol><jmolLink><script>script "http://proteopedia.org/scripts/52/520489/Ligand_pocket/2.spt"; x1 = script("show moveto")[11][0]; rotate y 90; x2 = script("show moveto")[11][0]; rotate x -90;x3 = script("show moveto")[11][0]; rotate y -90;x4 = script("show moveto")[11][0]; speed = "moveto 2.0"; script inline @{speed + x1}</script><text>mu opioid receptor</text></jmolLink></jmol> and use your skills learned from the [[viewing guide]] to explore the scene.
-
1. Choose a background
+
1. Choose a background: <jmol>
-
<jmol>
+
<jmolRadioGroup>
<jmolRadioGroup>
<item>
<item>
Line 32: Line 31:
-
2. How, if it all, do you want to show the protein?
+
2. How, if it all, do you want to show the protein? <jmol>
-
 
+
-
<jmol>
+
<jmolRadioGroup>
<jmolRadioGroup>
<item>
<item>
Line 60: Line 57:
</jmol>
</jmol>
-
 
+
3. How do you want the opioid to look like? <jmol>
-
3. How do you want the opioid to look like?
+
-
<jmol>
+
<jmolRadioGroup>
<jmolRadioGroup>
<item>
<item>
Line 80: Line 75:
</jmol>
</jmol>
-
4. Other choices
 
-
<jmol>
+
4. Other choices: <jmol>
<jmolCheckbox>
<jmolCheckbox>
<scriptWhenChecked>slab on; depth 40; var a = [80,70,65,63,62]; for(var i IN a) {slab @i; delay 0.4;};</scriptWhenChecked>
<scriptWhenChecked>slab on; depth 40; var a = [80,70,65,63,62]; for(var i IN a) {slab @i; delay 0.4;};</scriptWhenChecked>
Line 92: Line 86:
===Save some orientations===
===Save some orientations===
 +
Every time you find an orientation (rotation, translation, zoom), click a different one of these links. You can restore the orientation by clicking on the link in the next section.
<jmol><jmolLink><script>x1 = script("show moveto")[11][0]</script><text>view 1</text></jmolLink> </jmol>
<jmol><jmolLink><script>x1 = script("show moveto")[11][0]</script><text>view 1</text></jmolLink> </jmol>
Line 103: Line 98:
Go to different views:
Go to different views:
-
<jmol><jmolLink><script>script inline @{speed + x1}</script><text>V1</text></jmolLink></jmol> <jmol><jmolLink><script>script inline @{speed + x2}</script><text>V2</text></jmolLink></jmol> <jmol><jmolLink><script>script inline @{speed + x3}</script><text>V3</text></jmolLink></jmol> <jmol><jmolLink><script>script inline @{speed + x4}</script><text>V4</text></jmolLink></jmol>
+
<jmol><jmolLink><script>script inline @{speed + x1}</script><text>retrieve 1</text></jmolLink></jmol>
 +
 
 +
<jmol><jmolLink><script>script inline @{speed + x2}</script><text>retrieve 2</text></jmolLink></jmol>
 +
 
 +
<jmol><jmolLink><script>script inline @{speed + x3}</script><text>retrieve 3</text></jmolLink></jmol>
 +
 
 +
<jmol><jmolLink><script>script inline @{speed + x4}</script><text>retrieve 4</text></jmolLink></jmol>
Animate between the four views:
Animate between the four views:
<jmol><jmolLink><script>script inline @{speed + x2}; delay 0.2; script inline @{speed + x3}; delay 0.2; script inline @{speed + x4}; delay 0.2; script inline @{speed + x1}; delay 0.2; </script><text>start animation</text></jmolLink></jmol>
<jmol><jmolLink><script>script inline @{speed + x2}; delay 0.2; script inline @{speed + x3}; delay 0.2; script inline @{speed + x4}; delay 0.2; script inline @{speed + x1}; delay 0.2; </script><text>start animation</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>show console; show speed; show speed+x1; show x2; show x3; show x4</script><text>show animation script</text></jmolLink></jmol>
==Dock a ligand==
==Dock a ligand==

Revision as of 18:31, 13 September 2019

Drag the structure with the mouse to rotate

References

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis

Personal tools