Next: measure
Up: Controlling VMD from Python
Previous: label
Contents
Index
material
Python operations available from the material module, used to
create and modify material properties of molecular representations.
- listall():
Returns a Python list of the names of all available materials.
- settings(name):
Returns a Python dictionary of the material settings for material with
the given name.
- add(name=None, copy=None):
Create a new material with the given name. Optionally, copy the properties
from material copy into the new material. If no name is given, a new
one will be provided.
- delete(name):
Delete the material with the given name.
- rename(oldname, newname):
Rename the material with the given name. The new name must not yet
be used.
- change(name, ambient, specular, diffuse, shininess, mirror, opacity):
Change one or more of the material settings for the material with the
given name. Keyword arguments may be used to specify each property.
vmd@ks.uiuc.edu