Combine Proteopedia scenes with inline JSmol scripting: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Wayne Decatur (talk | contribs)
m add page Jaim suggested in May
 
Wayne Decatur (talk | contribs)
m add page Jaim suggested in May
Line 7: Line 7:
Let’s assume that the green link to your scene is <scene name='41/413146/Space_fill/1'>Space fill</scene>. You need to add ‘load /wiki/scripts/‘ before the name and ‘.spt’ after it, as follows:
Let’s assume that the green link to your scene is <scene name='41/413146/Space_fill/1'>Space fill</scene>. You need to add ‘load /wiki/scripts/‘ before the name and ‘.spt’ after it, as follows:


<code>
<
<jmol><jmolLink>
<script>
load /wiki/scripts/41/413146/Space_fill/1.spt
… <additional JSmol scripted steps> …
</script>
<text>text to be the green scene link text</text>
</jmolLink>
</jmol>
</code>
 
Examples:
 
- An example of this in action can be seen in the script triggered by the scene link 'A progression from all atoms to cartoon' that illustrates the relationship of the protein backbone to the secondary structure representation as part of the [Secondary_structure|Secondary structure] page.
- [[User:Wayne_Decatur/SecStrFadeIn]]