Jmol/Interactivity
From Proteopedia
(Difference between revisions)
Line 9: | Line 9: | ||
</jmolButton> | </jmolButton> | ||
</jmol> | </jmol> | ||
+ | |||
+ | The following code was used to build the button and make it work: | ||
+ | <nowiki | ||
+ | <jmol> | ||
+ | <jmolButton> | ||
+ | <script>script /scripts/37/376372/Overall/3.spt; | ||
+ | hide water; set zshade off</script> | ||
+ | <text>Lysozyme</text> | ||
+ | </jmolButton> | ||
+ | </jmol> | ||
+ | </nowiki> | ||
+ | |||
+ | |||
+ | The elements below make parts of the structure "blink": | ||
(carb<jmol> | (carb<jmol> | ||
Line 16: | Line 30: | ||
</jmolLink> | </jmolLink> | ||
</jmol>) | </jmol>) | ||
+ | |||
+ | <nowiki | ||
+ | (carb<jmol> | ||
+ | <jmolLink> | ||
+ | <script> select ligand; selectionHalos ON; | ||
+ | delay 0.5; selectionHalos OFF;</script> | ||
+ | <text>☼</text> | ||
+ | </jmolLink> | ||
+ | </jmol>) | ||
+ | </nowiki> | ||
+ | |||
+ | |||
N terminus(<jmol><jmolLink><script> select 1.CA; selectionHalos ON; delay 0.5;selectionHalos OFF;</script><text>☼</text></jmolLink> </jmol>) | N terminus(<jmol><jmolLink><script> select 1.CA; selectionHalos ON; delay 0.5;selectionHalos OFF;</script><text>☼</text></jmolLink> </jmol>) | ||
</StructureSection> | </StructureSection> |
Revision as of 20:24, 18 June 2020
|