User:Karsten Theis/Animation course: Difference between revisions
From Proteopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<StructureSection load='' size='340' side='right' caption='' scene='52/520489/Ligand_pocket/2'> | <StructureSection load='' size='340' side='right' caption='' scene='52/520489/Ligand_pocket/2'> | ||
== | ==Animate a scene with Jmol== | ||
===Load the scene and choose a look=== | |||
<scene name='52/520489/Ligand_pocket/2'>mu opioid receptor</scene> | <scene name='52/520489/Ligand_pocket/2'>mu opioid receptor</scene> | ||
| Line 12: | Line 14: | ||
<jmol><jmolLink><script>console; show moveto</script><text>orientation</text></jmolLink> </jmol> | <jmol><jmolLink><script>console; show moveto</script><text>orientation</text></jmolLink> </jmol> | ||
<jmol><jmolLink><script>select BF0;spacefill only;spacefill 0.4;wireframe 0.15</script><text>ball | <jmol><jmolLink><script>select BF0;spacefill only;spacefill 0.4;wireframe 0.15</script><text>ball and stick</text></jmolLink> </jmol> | ||
<jmol><jmolLink><script>select BF0;spacefill only;</script><text> | <jmol><jmolLink><script>select BF0;spacefill only;</script><text>spacefill</text></jmolLink> </jmol> | ||
<jmol> | <jmol> | ||
<jmolLink> | <jmolLink> | ||
<script> slab on; depth 40; var a = [80,70, | <script> slab on; depth 40; var a = [80,70,65,63,62]; for(var i IN a) {slab @i; delay 0.4;}; | ||
</script> | </script> | ||
<text>Shave away | <text>Shave away</text> | ||
</jmolLink> | |||
</jmol> | |||
<jmol> | |||
<jmolLink> | |||
<script> slab off; | |||
</script> | |||
<text>Everything</text> | |||
</jmolLink> | </jmolLink> | ||
</jmol> | </jmol> | ||
| Line 32: | Line 42: | ||
<jmol><jmolLink><script>select protein; color structure</script><text>helix</text></jmolLink> </jmol> | <jmol><jmolLink><script>select protein; color structure</script><text>helix</text></jmolLink> </jmol> | ||
===Save some orientations=== | |||
<jmol><jmolLink><script>x1 = script("show moveto")[11][0]</script><text>view 1</text></jmolLink> </jmol> | |||
<jmol><jmolLink><script>x2 = script("show moveto")[11][0]</script><text>view 2</text></jmolLink> </jmol> | |||
<jmol><jmolLink><script>x3 = script("show moveto")[11][0]</script><text>view 3</text></jmolLink> </jmol> | |||
<jmol><jmolLink><script>x4 = script("show moveto")[11][0]</script><text>view 4</text></jmolLink> </jmol> | |||
x = script("show moveto")[11][0] | |||
speed = "moveto 4.0" | |||
script inline @{speed + x} | |||
===Transition between orientations=== | |||
Select a transition speed: <jmol><jmolLink><script>speed = "moveto 1.0"</script><text>1 sec</text></jmolLink> <jmol><jmolLink><script>speed = "moveto 2.0"</script><text>2 sec</text></jmolLink> <jmol><jmolLink><script>speed = "moveto 4.0"</script><text>4 sec</text></jmolLink> <jmol><jmolLink><script>speed = "moveto 10.0"</script><text>10 sec</text></jmolLink> </jmol> | |||
Go to different views: | |||
<jmol><jmolLink><script>script inline @{speed + x1}</script><text>V1</text></jmolLink> <jmol><jmolLink><script>script inline @{speed + x2}</script><text>V2</text></jmolLink> <jmol><jmolLink><script>script inline @{speed + x3}</script><text>V3</text></jmolLink> <jmol><jmolLink><script>script inline @{speed + x4}</script><text>V4</text></jmolLink> | |||
==Collection of molecules== | ==Collection of molecules== | ||
Revision as of 22:20, 12 September 2019
| |||||||||||