User:Karsten Theis/Animation course
From Proteopedia
(Difference between revisions)
Line 128: | Line 128: | ||
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. | 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>store view 1</text></jmolLink> </jmol> |
- | <jmol><jmolLink><script>x2 = script("show moveto")[11][0]</script><text>view 2</text></jmolLink> </jmol> | + | <jmol><jmolLink><script>x2 = script("show moveto")[11][0]</script><text>store view 2</text></jmolLink> </jmol> |
- | <jmol><jmolLink><script>x3 = script("show moveto")[11][0]</script><text>view 3</text></jmolLink> </jmol> | + | <jmol><jmolLink><script>x3 = script("show moveto")[11][0]</script><text>store view 3</text></jmolLink> </jmol> |
- | <jmol><jmolLink><script>x4 = script("show moveto")[11][0]</script><text>view 4</text></jmolLink> </jmol> | + | <jmol><jmolLink><script>x4 = script("show moveto")[11][0]</script><text>store view 4</text></jmolLink> </jmol> |
===Transition between orientations=== | ===Transition between orientations=== | ||
- | Select a transition speed: <jmol><jmolLink><script>speed = "moveto 0.2"</script><text>0.2 sec</text></jmolLink></jmol> <jmol><jmolLink><script>speed = "moveto 1.0"</script><text>1 sec</text></jmolLink></jmol> <jmol><jmolLink><script>speed = "moveto 4.0"</script><text>4 sec</text></jmolLink></jmol> <jmol><jmolLink><script>speed = "moveto 10.0"</script><text>10 sec</text></jmolLink> </jmol> | ||
Go to different views: | Go to different views: | ||
- | <jmol><jmolLink><script>script inline @{speed + x1}</script><text>retrieve 1</text></jmolLink></jmol> | + | <jmol><jmolLink><script>script inline @{speed + x1}</script><text>retrieve view 1</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>script inline @{speed + x2}</script><text>retrieve 2</text></jmolLink></jmol> | + | <jmol><jmolLink><script>script inline @{speed + x2}</script><text>retrieve view 2</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>script inline @{speed + x3}</script><text>retrieve 3</text></jmolLink></jmol> | + | <jmol><jmolLink><script>script inline @{speed + x3}</script><text>retrieve view 3</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>script inline @{speed + x4}</script><text>retrieve 4</text></jmolLink></jmol> | + | <jmol><jmolLink><script>script inline @{speed + x4}</script><text>retrieve view 4</text></jmolLink></jmol> |
Animate between the four views: | Animate between the four views: | ||
+ | |||
+ | Select a transition speed: <jmol><jmolLink><script>speed = "moveto 0.2"</script><text>0.2 sec</text></jmolLink></jmol> <jmol><jmolLink><script>speed = "moveto 1.0"</script><text>1 sec</text></jmolLink></jmol> <jmol><jmolLink><script>speed = "moveto 4.0"</script><text>4 sec</text></jmolLink></jmol> <jmol><jmolLink><script>speed = "moveto 10.0"</script><text>10 sec</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>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> | ||
Line 160: | Line 162: | ||
Click and drag on the ligand to move it. Alt-click and drag on the ligand to rotate it. Click and drag away from the ligand to adjust the view. To store each consecutive ligand position, consecutively click on the links below: | Click and drag on the ligand to move it. Alt-click and drag on the ligand to rotate it. Click and drag away from the ligand to adjust the view. To store each consecutive ligand position, consecutively click on the links below: | ||
- | <jmol><jmolLink><script>temp1 = {BF0}.xyz.all</script><text> | + | <jmol><jmolLink><script>temp1 = {BF0}.xyz.all</script><text>store state 1</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>temp2 = {BF0}.xyz.all</script><text> | + | |
- | <jmol><jmolLink><script>temp3 = {BF0}.xyz.all</script><text> | + | <jmol><jmolLink><script>temp2 = {BF0}.xyz.all</script><text>store state 2</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>temp4 = {BF0}.xyz.all</script><text> | + | |
+ | <jmol><jmolLink><script>temp3 = {BF0}.xyz.all</script><text>store state 3</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>temp4 = {BF0}.xyz.all</script><text>store state 4</text></jmolLink></jmol> | ||
===Recall ligand position=== | ===Recall ligand position=== | ||
Clicking on the links below will restore the ligand position (scene0 is the original position in the binding pocket): | Clicking on the links below will restore the ligand position (scene0 is the original position in the binding pocket): | ||
- | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp0} -2</script><text> | + | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp0} -2</script><text>retrieve state 0</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp1} -2</script><text> | + | |
- | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp2} -2</script><text> | + | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp1} -2</script><text>retrieve state 1</text></jmolLink></jmol> |
- | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp3} -2</script><text> | + | |
- | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp4} -2</script><text> | + | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp2} -2</script><text>retrieve state 2</text></jmolLink></jmol> |
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp3} -2</script><text>retrieve state 3</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp4} -2</script><text>retrieve state 4</text></jmolLink></jmol> | ||
To animate, click below | To animate, click below |
Revision as of 19:01, 13 September 2019
|