Jmol/Using the console
From Proteopedia
(Difference between revisions)
Line 40: | Line 40: | ||
Model 2.1 gets moved and model 1.1 stays in place. | Model 2.1 gets moved and model 1.1 stays in place. | ||
- | Here is an example, GAL and NAGAL superimposed via the ligand. The Jmol script for the scene is here (see Figure X), and the key command is | + | Here is an example, <scene name='78/786673/Gal_nagal_other_superposition/1'>GAL and NAGAL superimposed via the ligand</scene>. The Jmol script for the scene is here (see Figure X), and the key command is "compare {2.1} {1.1} ATOMS{1000:A and _C}{801:A and _C} ROTATE TRANSLATE" |
- | + | ||
+ | Use the following buttons to explore the example scene: | ||
+ | |||
+ | |||
+ | <jmol> | ||
+ | <jmolButton> | ||
+ | <script>!exit; ppdiaCaptionCmd = "changeCaption('The enyme GAL (green) in complex with the sugar galactose. ','white','black');"; javascript @ppdiaCaptionCmd; delay 1.2; model 1</script> | ||
+ | <text>GAL</text> | ||
+ | </jmolButton> | ||
+ | </jmol> <jmol> | ||
+ | <jmolButton> | ||
+ | <script>!exit; ppdiaCaptionCmd = "changeCaption('The enyme NAGAL (blue) in complex with the sugar N-acetyl galactosamin. ','white','black');"; | ||
+ | javascript @ppdiaCaptionCmd;delay 1.5; model 2</script> | ||
+ | <text>NAGAL</text> | ||
+ | </jmolButton> | ||
+ | </jmol> <jmol> | ||
+ | <jmolButton> | ||
+ | <script>!exit; ppdiaCaptionCmd = "changeCaption('Superposition of GAL (green) and NAGAL (blue).','white','black');"; javascript @ppdiaCaptionCmd; delay 1.5; model 0</script> | ||
+ | <text>both</text> | ||
+ | </jmolButton> | ||
+ | </jmol> <jmol> | ||
+ | <jmolButton> | ||
+ | <script>animation mode loop; ppdiaCaptionCmd = "changeCaption('Animated superposition of GAL (green) and NAGAL (blue).','white','black');"; javascript @ppdiaCaptionCmd; animation on</script> | ||
+ | <text>animate</text> | ||
+ | </jmolButton> | ||
+ | </jmol> | ||
===Covalent modifications=== | ===Covalent modifications=== |
Revision as of 13:16, 31 October 2020
The Jmol console may be used to obtain information, and to change the scene currently displayed. This may be useful while viewing a Proteopedia page, or while creating a 3D scene, achieving certain effects not possible with the Scene Authoring Tools alone. You can open the Jmol console via the right-click menu in the Jmol window, or via a dedicated button under the Jmol window in the SAT.
|