next up previous contents index
Next: Saving and Restoring Molecule Up: High-level Python Interface Previous: MoleculeRep   Contents   Index

Draw Style Methods

The syntax for changing the draw style in the MoleculeRep.changeStyle() method is fairly simple and easy to remember as long as the default values for each style are used; however, remembering that rep.changeStyle("CPK 0.5 0.5 8") is the way to set the bond radius, sphere scale, and sphere resolution for CPK is a little more difficult. The Molecule class defines a function for each draw style to make it easier to generate the required strings to pass to the changeStyle methods. Each function accepts keyword arguments for specifying the draw style parameters and returns a string suitable for changeStyle().



vmd@ks.uiuc.edu