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)
mNo edit summary
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:


To do this, you need the scene name as provided by the Scene Authoring Tools.<br/>   
To do this, you need the scene name as provided by the Scene Authoring Tools.<br/>   
Then to load that scene from within any script
Then to load that scene from within any script follow these instructions:<br>
You may load scenes from any script by following these instructions:


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 <code><nowiki><scene name='41/413146/start_view/1'>Starting view</scene></nowiki></code>. You need to add <nowiki>load /wiki/scripts/</nowiki> before the name and <code><nowiki>.spt</nowiki></code> after it, as follows:


<code>
<pre>
<jmol><jmolLink>
<jmol>
<jmolLink>
<script>
<script>
load /wiki/scripts/41/413146/Space_fill/1.spt
load /wiki/scripts/41/413146/Space_fill/1.spt
Line 16: Line 16:
  </jmolLink>
  </jmolLink>
</jmol>
</jmol>
</code>
</pre>
 


Examples:
Examples:
* the 'Button' example at [[Jmol/Interactivity#Button|Jmol/Interactivity]]
* 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]]
==See Also==


- 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.
* [[Proteopedia:Cookbook]]
- [[User:Wayne_Decatur/SecStrFadeIn]]
* [[Jmol/Interactivity]]