Molecular Playground/Procedures: Difference between revisions
Eric Martz (talk | contribs) |
Eric Martz (talk | contribs) |
||
Line 136: | Line 136: | ||
This procedure does NOT apply to Level I modules. | This procedure does NOT apply to Level I modules. | ||
This procedure assumes that you have followed the procedure above to create a script '' | This procedure assumes that you have followed the procedure above to create a script ''yourMolecule.spt'' (where ''yourMolecule'' is the name of the molecule that you are displaying). Here is explained how to display that script in a page in Proteopedia, which can become the web page that you offer for more information to those MP onlookers who visit [http://molecularplayground.org MolecularPlayground.Org]. | ||
<ol> | <ol> | ||
<li> | <li> | ||
'''Specify ''proteopediaStateScript'':''' In | '''Specify ''proteopediaStateScript'':''' In ''yourMolecule.spt'' is the variable ''proteopediaStateScript'' that specifies the filepath for your state script on the Proteopedia server. Display the Proteopedia page where you developed your molecular scene, and display your scene in Jmol on that page. Click on the word ''Jmol'' to the lower right of the molecule, to raise Jmol's menu. On the menu, click on '''Show, History'''. The white ''Jmol Script Console'' will open, showing the filepath. Copy only the part beginning "/wiki...", excluding the word "script" and the semicolon at the end. On '''Macs, copy with Ctrl-C''' not Cmd-C. Paste it into ''MP_yourMolecule.spt'' between the double quotes for the value of ''proteopediaStateScript''. For a concrete example of what this should look like, see [http://proteopedia.org/wiki/images/5/54/MP_relenza03.spt MP_relenza03.spt]. | ||
</li><li> | </li><li> | ||
'''Put a button into your web page:''' At the point where you want a button to display your scene, copy and paste the following into the wikitext of your web page: | '''Put a button into your web page:''' At the point where you want a button to display your scene, copy and paste the following into the wikitext of your web page: |