User:Eric Martz/Molecular Playground/Authoring: Difference between revisions
Eric Martz (talk | contribs) →Jmol Scripting Options: adding content |
Eric Martz (talk | contribs) →A Complex Animation: adding content |
||
Line 78: | Line 78: | ||
In creating a script for a complex animation, you don't have to start from scratch! You should start by downloading the script from whichever of these existing modules has the most in common with your plans: | In creating a script for a complex animation, you don't have to start from scratch! You should start by downloading the script from whichever of these existing modules has the most in common with your plans: | ||
* [[Molecular Playground | * [[Molecular Playground/Tamiflu]] (a single molecular model) | ||
* [[Molecular Playground | * [[Molecular Playground/HIV Protease Inhibitor]] (a multiple-model animation) | ||
These scripts contain crucial sections for initialization (including calling the support script), defining useful variables, loading the molecule, etc. They will show, by example, how to do the things displayed in these modules. You can change the module-specific parts of one of these scripts to customize it for your module. The first step is to change the local PDB file loaded from tamiflu.pdb or hivdrug.pdb to yourMolecule.pdb . It is a good idea to test the script after each change. That way, if something doesn't work, you'll know which change caused the problem. | You will find links for downloading the scripts on the above-linked pages. These scripts contain crucial sections for initialization (including calling the support script), defining useful variables, loading the molecule, etc. They will show, by example, how to do the things displayed in these modules. You can change the module-specific parts of one of these scripts to customize it for your module. The first step is to change the local PDB file loaded from tamiflu.pdb or hivdrug.pdb to yourMolecule.pdb . It is a good idea to test the script after each change. That way, if something doesn't work, you'll know which change caused the problem. | ||
Proteopedia contains a support script for Molecular Playground, [[Image:MPSupportVersion01.spt]]. The support script contains functions that make it easy to do commonly needed tasks, such as | Proteopedia contains a support script for Molecular Playground, [[Image:MPSupportVersion01.spt]]. The support script contains functions that make it easy to do commonly needed tasks, such as | ||
* colorAllLightCPK: makes the default colors for carbon, nitrogen, and oxygen lighter, so they show up better when projected in a well-lighted room. | |||
* showBannerAcrossTop() places a banner across the top of Jmol. It sets up a white background for the banner, and automatically adjusts the font size for projection vs. an applet on the web page. | |||
* labelAtomWithPointer() | |||
* zoomRotatableTo() zooms slowly (up or down), and permits the onlooker to rotate the molecule during zooming. | |||
* growSpacefill() and growWireframe() make the selected atoms "grow" slowly into spacefilled or wireframe representations, permitting rotation by the onlooker during these transitions. | |||
==Web Pages== | ==Web Pages== |