MarvinSpace

In this example we use JavaScript to change some of the visualization options.

Draw types
Wire
Ball
Stick
Ball and Stick
Spacefill

Hydrogens
Smooth sticks
Display bond order
Draw rotation sphere

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 used
        if(document.DrawType.group1[0].checked == true)
        {
          document.MSpaceApplet.setProperty( "Ligand.DrawType", document.DrawType.group1[0].value );
        }
    
 

Copyright © 2004-2009 ChemAxon Ltd.    All rights reserved.