User:Angel Herraez/Sandbox Advanced Scenes
From Proteopedia
How to import Jmol renderings prepared outside Proteopedia into a scene
(For advanced users that are proficient in Jmol scripting out of Proteopedia)
If you have prepared a complex visualisation in the Jmol application (or copied it from some webpage, with permission from its author) and want to incorporate it in a Proteopediia scene, this is the way:
- Make a note of the PDB ID involved.
- Prepare the model with the rendering you like.
- From Jmol pop-up menu, choose
File > Save > Save script with state
--or in the console, typeshow state
and copy all the output. - Edit that output (content of the state script file), find the line that starts
load /*file*/
and delete it --or comment it out by prepending two slashes or a hash sign:
// load /*file*/ # load /*file*/
- In your Proteopedia page, open the SAT and create a new scene.
- Load the file by its PDB ID (this will load it from the copy at Proteopedia and prevents subsequent errors in properly handling the scene).
- Open the Jmol Script Console (via the pop-up menu in the JSmol within the SAT).
- Paste the full state script that you obtained in step #4.
- Fix any problems that you may see in the rendering (if ti does not look exactly like you intended).
- Save your scene, paste its code into the page as usual, then close the SAT and test the green link in your page.