MarvinSpace
In this example we use JavaScript to change some of the visualization options.
|
Draw types |
Almost all options can be reached through the same function:setProperty(String propertyName, String propertyValue)The list of the available properties, their possible and default values can be found here.
For example to change the Draw Type of the loaded molecule,setProperty("Ligand.DrawType", "Wire")should be called. Through JavaSript, we usedif(document.DrawType.group1[0].checked == true) { document.MSpaceApplet.setProperty( "Ligand.DrawType", document.DrawType.group1[0].value ); }
Do you have a question? Would you like to learn more? Please browse among the related topics on our support forum or search the website. If you want to suggest modifications or improvements to our documentation email our support directly!
